Two comments.
First, I get the same answer as Java:
$ perl -le'print cos(100000000)' -0.363385089355691 $ perl -e'printf "%.16g\n", cos(100000000)' -0.3633850893556905
The underlying C library makes a difference.
Second, floating point numbers don't have a precision field. Assuming it's even possible, accommodating such a field would require a substantial drop in max precision. You are free to track such data yourself, however.
In reply to Re: cos (100000000.0)
by ikegami
in thread cos (100000000.0)
by kavehmz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |