in reply to Re^3: Efficiently working with huge exponents (yeah)
in thread Efficiently working with huge exponents

... I'll probably just use Math::BigApprox for my current need ...

When the original post first appeared, I didn't notice any mention of perfect precision *not* being desired. Was that part of the post always there ?
Anyway, just to correct my original reply to cater for perfect precision *not* being required:
perl -MMath::MPFR=:mpfr -le "Rmpfr_set_default_prec(28);print Math::MP +FR->new(2) ** 1024000;" 5.194693363e308254
(In Math::MPFR, precision is specified in bits.)

You *can* specify precision for your Math::BigFloat numbers, too - it's in the docs.

Cheers,
Rob

Replies are listed 'Best First'.
Re^5: Efficiently working with huge exponents (yeah)
by wanna_code_perl (Friar) on Mar 22, 2015 at 13:04 UTC
    When the original post first appeared, I didn't notice any mention of perfect precision *not* being desired. Was that part of the post always there ?

    Yes it was, and if it wasn't, I'd have clearly annotated the change.

    Thanks for the updated tip!