in reply to Re: RFC: Large Floating Point Numbers - Rounding Errors
in thread RFC: Large Floating Point Numbers - Rounding Errors

I haven't done a comparison of how fast BigRat works compared to BigFloat, so it may not be worth the effort after all.

If speed is ever an issue, then the gmp library provides "bigrat" (as well as both "bigfloat" and "bigint") types.
The "bigrat" arithmetic is accessible from perl via Math::GMPq

Cheers,
Rob
  • Comment on Re^2: RFC: Large Floating Point Numbers - Rounding Errors

Replies are listed 'Best First'.
Re^3: RFC: Large Floating Point Numbers - Rounding Errors
by Anonymous Monk on Sep 19, 2011 at 16:50 UTC
    Ah, so little time. If I didn't have to compile this first, I'd have already posted timing differentials.