in reply to Re: Decimal Floating Point (DFP) and does Perl needs DFP?
in thread Decimal Floating Point (DFP) and does Perl needs DFP?

Perl 6 has a built-in Rat (rational number) class

It'll be interesting to see how well that performs and what limitations it has. (Are denominator and numerator limited to ivsize ?)
Perl5 does provide access to rational arithmetic via Math::BigRat (which is slow) and Math::GMPq (which is fast, but requires the gmp library).

Cheers,
Rob
  • Comment on Re^2: Decimal Floating Point (DFP) and does Perl needs DFP?

Replies are listed 'Best First'.
Re^3: Decimal Floating Point (DFP) and does Perl needs DFP?
by raiph (Deacon) on Jan 20, 2015 at 05:50 UTC