kavehmz has asked for the wisdom of the Perl Monks concerning the following question:
I have these results from several languages all in Intel x86 machine
C++ std math.h cos(100000000.0): -0.363385
Java cos(100000000.0) :-0.3633850893556905
Perl cos (100000000.0):-0.36338508935581
why Perl is returning last digits wrong, and why it does not truncate it to what it knows it is the last precision it can correctly calculate?
C++ std math.h cos(100000000.0): -0.363385
Java cos(100000000.0) :-0.3633850893556905
Perl cos (100000000.0):-0.36338508935581
why Perl is returning last digits wrong, and why it does not truncate it to what it knows it is the last precision it can correctly calculate?
Back to
Seekers of Perl Wisdom