in reply to Re^2: [Raku] Arcane treatment of doubles and rationals
in thread [Raku] Arcane treatment of doubles and rationals
$ raku -e 'my $r = 3602879701896397/36028797018963968; say $r.raku; sa +y $r.raku == $r;' 0.1000000000000000055511151231257827021181583404541015625 True
Is the same thing also as straightforward in raku ?$ perl -le 'printf "%.800g\n", 0.1' 0.1000000000000000055511151231257827021181583404541015625 $
I've read documentation stating that raku's printf() expects that the last argument must be a string.$ raku -e 'printf "%.800g\n", 0.1e0' NaN $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: [Raku] Arcane treatment of doubles and rationals
by syphilis (Archbishop) on Apr 06, 2021 at 12:03 UTC |