# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #77592] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77592 >
<alksentrs> rakudo: say 1 % 0 <p6eval> rakudo f8e959: OUTPUT«1» <masak> alksentrs: o.O <masak> alksentrs: that should be a 'div by zorro' error, if you ask me. <alksentrs> rakudo: say 0 % 0 <p6eval> rakudo f8e959: OUTPUT«0» <colomon> $x % $y == $x - floor($x / $y) * $y <alksentrs> rakudo: say 0 / 0 <p6eval> rakudo f8e959: OUTPUT«Divide by zero in 'infix:<div>' [...] <colomon> rakudo: say floor(1/0).perl <p6eval> rakudo f8e959: OUTPUT«Inf» <TimToady> rakudo: say (0/0).WHAT <p6eval> rakudo f8e959: OUTPUT«Divide by zero in 'infix:<div>' [...] <colomon> rakudo: say floor(1/0) * 0 <p6eval> rakudo f8e959: OUTPUT«NaN» <colomon> okay, so that's not how it's being calculated... <colomon> ah, just a call to pir::mod * masak submits $x % 0 rakudobug * colomon hopes masak doesn't expect us to trap LHS of 0 on infix:<%> before calling into Parrot... <masak> colomon: I expect $x % 0 to die just as much as $x / 0 does.
