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 ?