laziness, impatience, and hubris | |
PerlMonks |
Re: Strange (rounding?) problemby alfie (Pilgrim) |
on May 02, 2001 at 14:07 UTC ( [id://77279]=note: print w/replies, xml ) | Need Help?? |
You need to define how much digits you count as significant.
There are lots of examples where it's noted that you can't
directly compare floats with each other. Do something along
this lines:
Adjust the power to your likes.
Update: Of course it should be >=, thanks Eureka_sg.
Somehow I seemed to have thought about using unless but wrote
if instead...
In Section
Seekers of Perl Wisdom
|
|