sorear/niecza — Issue #75: Rat should stringify to a decimal expansion
Author: masak
Created: 2011-10-26 14:25:03+00:00
State: open

roast: review: https://github.com/perl6/roast/commit/016a50fe62
roast: 7560a7a | (Solomon Foster)++ | S32-num/int.t:
roast: Make Niecza-friendly: don't assume Rats stringify the same as Nums, and fudging.
roast: review: https://github.com/perl6/roast/commit/7560a7a7e9
perl6: say 5/4
niecza v10-61-gbacff10: OUTPUT«5/4␤»
..pugs b927740, rakudo cbc652: OUTPUT«1.25␤»
isn't that a nieczabug?
it is
* masak submits it
any relevant synopsis I can quote?
masak: S02: say 1/5; # 0.2 exactly (not via Num)
moritz++
< moritz> ... though by latest spec that's .gist, and not .Str
< moritz> perl6: say (1/2).Str
niecza v10-61-gbacff10: OUTPUT«1/2␤»
..rakudo cbc652: OUTPUT«0.5␤»
ok, that is wrong at least

So, `(1/2).Str` should be `"0.5"` in Niecza, not `"1/2"`.