# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #112678]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112678 >


<moritz> p6: say (-8) div 3
<p6eval> ..niecza v16-23-gaa61ed5: OUTPUT«-3␤»
<p6eval> ..rakudo 2a962e: OUTPUT«-2␤»
<masak> huh!
<masak> I think Rakudo is right here.
<masak> it's truncate-towards-0, not round-down semantics.
* masak submits nieczabug
<sisar> masak: no. the spec says "In general, div should give the same
result as:   $x div $y == floor($x/$y) "
<masak> oh!
* masak unsubmits the nieczabug and submits rakudobug

Reply via email to