3 ms·
The man speaks the truth, but I do get a warning 2.0^(40.0/1.5) Runtime warning (func=(main), adr=18): non-zero scale in exponent 67108864.00000000000
by keithpeter 14y ago
The man speaks the truth, but I do get a warning
2.0^(40.0/1.5)
Runtime warning (func=(main), adr=18): non-zero scale in exponent
67108864.00000000000000000000
Apparently the ^ function only works with integer powers. The exponential and natural log functions work as expected
http://www.johndcook.com/blog/2010/07/14/bc-math-library/ http://www.johndcook.com/blog/2010/07/14/bc-math-library/
keith@xeon4:~$ bc -l
e(l(2)*(40.0/1.5))
106528681.30999083085437360438
nice example.