Well, I understand that. The problem is that it is inconsistent. The result depends not only on the type of calculation which led to $x2:
perl -e '$x1=256080; $x2 = 1000 * ( 4*60 + 18 + 4/25 ); $diff=$x2-$x1; print "x1=$x1, x2=$x2, diff=$diff\n";'
x1=256080, x2=258160, diff=2080.00000000003
perl -e '$x1=256080; $x2 = 1000 * ( 4*60 + 18 ) + 1000*(4/25); $diff=$x2-$x1; print "x1=$x1, x2=$x2, diff=$diff\n";'
x1=256080, x2=258160, diff=2080

but also on the value of $x1 which has never been calculated.

perl -e '$x1=25608; $x2 = 1000 * ( 4*60 + 18 + 4/25 ); $diff=$x2-$x1; print "x1=$x1, x2=$x2, diff=$diff\n";'
x1=25608, x2=258160, diff=232552

In reply to Re^2: Integers sometimes turn into Reals after substraction by rduke15
in thread Integers sometimes turn into Reals after substraction by rduke15

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":