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

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)

Replies are listed 'Best First'.
Re^4: Why does Perl 6 math suck less?
by syphilis (Archbishop) on Jan 12, 2011 at 11:23 UTC
    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
Re^4: Why does Perl 6 math suck less?
by sharkey (Scribe) on Jan 12, 2011 at 16:23 UTC
    How is 0.1 stored? as floating point or fixed point or ?