3 ms·
You could say the same thing about perl5 then :) $ perl -E "use bignum; say .1 + .2 - .3" 0 $ perl -E "use bigrat; say .1 + .2 - .3" 0 $
by draegtun 12y ago
You could say the same thing about perl5 then :)
$ perl -E "use bignum; say .1 + .2 - .3"
0
$ perl -E "use bigrat; say .1 + .2 - .3"
0
$ perl -E "use bigrat; say 3.1415927 / 1"
31415927/10000000
ref: http://perldoc.perl.org/bignum.html http://perldoc.perl.org/bignum.html | http://perldoc.perl.org/bigrat.html http://perldoc.perl.org/bigrat.html