Please see Re^3: number comparison with a twist and connected posts to why using == is far better here
Using the small epsilon rounding of stringification is actually a good idea (and not much different to the diff solutions proposed by others) ...
... but one has to first prove that it always works for cents ( which I did)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^6: number comparison with a twist
by LanX
in thread number comparison with a twist
by anotherguest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |