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


<jercos> m: for -1..2 ->\_{(10 ** _).WHAT.say}
<camelia> rakudo-moar 3fc98b: OUTPUT«(Num)␤(Int)␤(Int)␤(Int)␤»
<TimToady> one supposes that first one could be Rat
<jercos> I would expect negative exponents to be Rat until Rat overflows.
<TimToady> could be worth an RT
* masak submits rakudobug
<masak> m: say (10 ** -1).^name
<camelia> rakudo-moar 3fc98b: OUTPUT«Num␤»
<masak> m: say (1/ 10).^name
<camelia> rakudo-moar 3fc98b: OUTPUT«Rat␤»
<TimToady> question after that is whether it should underflow to
FatRat, but probably should just go to Num
<masak> TimToady: yeah, I think Num is less surprising somehow.
<masak> TimToady: otherwise people might run into unexpected slowness
for unrequited precision.
<jercos> I think Num is fairly reasonable for the under/overflow, yeah.

Reply via email to