Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: RFC: Large Floating Point Numbers - Rounding Errors

by syphilis (Archbishop)
on Sep 19, 2011 at 04:05 UTC ( [id://926681]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found