Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Why does Perl 6 math suck less?

by Anonymous Monk
on Jan 12, 2011 at 10:57 UTC ( [id://881876]=note: print w/replies, xml ) Need Help??


in reply to Re: Why does Perl 6 math suck less?
in thread Why does perl math suck?

Just out of curiosity ..
How does Perl 6 get around this?

Replies are listed 'Best First'.
Re^3: Why does Perl 6 math suck less?
by moritz (Cardinal) on Jan 12, 2011 at 11:01 UTC

    By defaulting to rational numbers that are stored as two integers internally. As explained in the link I provided.

    (Note that floating point numbers are still accessible with by using scientifc notation, eg 0.1e0)

      By defaulting to rational numbers that are stored as two integers internally

      To get the same sort of behaviour with perl5 you could use Math::BigRat or Math::GMPq.

      Any other perl5 alternatives ?

      Cheers,
      Rob
      How is 0.1 stored? as floating point or fixed point or ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-03-19 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found