"be consistent" | |
PerlMonks |
Re^3: False positive on inequality comparisonby BrowserUk (Patriarch) |
on Apr 06, 2009 at 19:31 UTC ( [id://755828]=note: print w/replies, xml ) | Need Help?? |
Using string comparison on floats is dangerous, unless you don't care if the floats are actually different! As this shows in the last line, Perl's default stringification for floats will only show you 6 decimal places of precision, anything beyond that accuracy and you are just pretending the are the same.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|