Dear Monks,
I wonder why the following code produces NaN for $number. The problem seems to be the bignum module, since without it the script works fine. But I need this module because I have to handle BIG numbers (~10**2500).
Thanks for your helpuse bignum; $number=330978816.3082480433473810957254665863937; $number=(int(((log($number)/log(10))*10)+0.5))/10; print"$number\n";
In reply to What causes NaN when using bignum by Microcebus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |