"be consistent" | |
PerlMonks |
Re: finding the correct integerby johngg (Canon) |
on Nov 30, 2020 at 14:57 UTC ( [id://11124397]=note: print w/replies, xml ) | Need Help?? |
Using int will truncate so if the result, due to the inexact way a computer will represent 0.0001, is, say, 6504.9999997 it will end up as 6504. This seems to work.
Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|