in reply to number comparison with a twist
I'd convert the textual float to textual cents by eliminating the dot .
Like this you'll only deal with integers.
I might even try to only use eq for comparison then, but this depends on the accuracy of your format (leading zeroes and so on)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: number comparison with a twist
by Marshall (Canon) on Mar 05, 2020 at 04:10 UTC |