# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131008] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131008 >
Code: say 2.5 lcm 5 Result: 10 Looking at the implementation, it calls .Int on both arguments before doing a normal lcm ( https://github.com/rakudo/rakudo/blob/d56501a65dab442acd64ad00d52483a53ed7fe40/src/core/Numeric.pm#L250 ). I don't think that giving a seemingly wrong answer is a good idea. I'd much rather prefer it to complain that the argument is not Int, and let the user decide if he wants to Int-ify the numbers or use a different solution. Another option is to make it return 5 (kinda DWIM), but this is a yet another rabbit holeā¦