Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Small Perl 6 discoveries II, Rats

by bduggan (Pilgrim)
on Oct 19, 2017 at 16:02 UTC ( [id://1201688]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Small Perl 6 discoveries II, Rats
in thread [Perl6] Small discoveries I, __DATA__

Well -- I'd say it is more accurate (though not more precise) -- it can accurately represent rational numbers, so you can do rational arithmetic without rounding errors. e.g.
> .3.Num - .2.Num - .1.Num == 0 False > .3 - .2 - .1 == 0 True

Replies are listed 'Best First'.
Re^5: Small Perl 6 discoveries II, Rats
by Anonymous Monk on Oct 19, 2017 at 16:44 UTC
    The reason this digression started is because it can't accurately represent rational numbers. Except for trivial examples, I suppose.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1201688]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found