Skip to content

Commit

Permalink
Merge pull request #5113 from salortiz/patch-1
Browse files Browse the repository at this point in the history
Avoid loss in precision on FatRat .Str conversion
  • Loading branch information
jdv committed Dec 2, 2022
2 parents 6cded78 + 441e71a commit a9d9c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Rational.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ my role Rational[::NuT = Int, ::DeT = ::("NuT")] does Real {
?? 6
!! (nqp::chars(nqp::tostr_I($!denominator))
+ nqp::chars(nqp::tostr_I(whole))
+ 1
+ 5
)
)
!! nqp::islt_I($!numerator,0) # no fract val
Expand Down

0 comments on commit a9d9c13

Please sign in to comment.