There's more than one way to do things | |
PerlMonks |
Re^2: cos (100000000.0)by kavehmz (Initiate) |
on Sep 01, 2009 at 14:56 UTC ( [id://792679]=note: print w/replies, xml ) | Need Help?? |
Maybe you answer is different from mine because you are running Perl in another architecture. Are you using a Intel based machine? And how can I decide, up to what point I can trust Perl calculations? Becasue it is a different situation that we have intrinsic error in floating point numbers like http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems For that kind of expected problems i am ready to check my values properly. But for what I get from a call to a language function why should it be careful that it will return a wrong number? Is there a way that I restrict Perl return values to what is safe for big number without truncating all return numbers from native Perl functions by myself? And when Perl is returning numbers in this fashion can I be sure that if I use bigger numbers, the error wont grow to make more wrong digits?
In Section
Seekers of Perl Wisdom
|
|