Yeah, that's the same type of thing that Math::BigApprox makes much easier:
$ time perl -MMath::BigApprox=c -le'print c(2)**1024000' 5.194693e+308254 real 0m0.021s user 0m0.012s sys 0m0.004s
And it makes a good guess at how many decimal places to show as well.
- tye
In reply to Re^2: Efficiently working with huge exponents (yeah)
by tye
in thread Efficiently working with huge exponents
by wanna_code_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |