|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Re: Re: Re: Filthy Floatsby nardo (Friar) |
| on Jul 16, 2001 at 19:34 UTC ( [id://97151]=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.
I am finding it hard to believe that Perl can't represent 0.98
printf("%.25f\n", 0.98); It's not perl, it's the underlying floating points which can not precisely represent 0.98, this is due to floating point numbers being base 2 and having a finite size.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||