note
syphilis
<I>Someone else might be able to provide more definitive advice about that</I><br><br>
As regards the operation <c>$m % $n</c>, the perlop documentation ( see <c>perdoc perlop</c> ) states:
<br><br>
<quote><br>
If the operands $m and $n are floating point values and the absolute value of $n (that is "abs($n)") is less than "(UV_MAX + 1)", only the integer portion of $m and $n will be used in the operation
<br>(Note: here "UV_MAX" means the maximum of the unsigned integer type).
<br></quote><br><br>
So perl's calculation of 3335.99999999995 % 3330 ( == 5) is being done as documented.
<br><br>Cheers,<br>
Not "someone else"
1168204
1229754