in reply to Re^5: number comparison with a twist
in thread number comparison with a twist
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: number comparison with a twist
by Veltro (Hermit) on Mar 02, 2020 at 21:18 UTC | |
by LanX (Saint) on Mar 03, 2020 at 00:55 UTC |