in reply to Re: Simple adding numbers
in thread Simple adding numbers

perl -E say 'Ouch!' if '0002' lt 1;

Ouch!

I would recommend caution if you're going to go down that road. The best thing to do is to simply understand the nature of floating point precision and deal with it in the most straight-forward way possible. Stringification has its uses, but bending the rules of numeric relational comparisons is probably not an ideal one.


Dave