Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: RFC: Large Floating Point Numbers - Rounding Errorsby syphilis (Archbishop) |
on Sep 19, 2011 at 04:05 UTC ( [id://926681]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Meditations
|
|