in reply to Integers sometimes turn into Reals after substraction

Running your code under Perl 6 displays the following output for the last line:
*rationals*, so that 4/25 is not stored internally as 0.16, but as 4/25, i.e. a numerator and a denominator.

And you can even compare $diff with 2080:x1=256080, x2=258160, diff=2080

The reason for the difference is that Perl 6 is not using floats for such calculations, butsay $diff == 2080; # -> True

In Section
Seekers of Perl Wisdom

Comment onRe: Integers sometimes turn into Reals after substractionSelectorDownloadCode