|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: Math 101 anyone?by davido (Cardinal) |
| on Oct 12, 2004 at 03:44 UTC ( [id://398403]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
What Every Computer Scientist Should Know About Floating-Point Arithmetic Not a bug, it's an artifact of a finite number of bits being used to represent an infinite concept. It's also covered in perlfaq4 under the heading "Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)?" And if you want excrutiating detail on the issue, look at perlnumber. Dave
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||