Need > 15 digits precision without big performance hit

J

Jasper

Hello,

I am doing calculations where I need ~50 decimal places of
precision..I have been writing code and Perl and noticed that even if
I convert my floating point numbers to integers, the maximum # decimal
places is 15 !! And Adding in Math::BigInt or BigFloat slows
performance to a CRAWL...does anyone have any recommendations here to
get around this problem...Perhaps a way to have 15 digits on either
side of the decimal, which it does not allow for today..If there is no
recommendation, does adding more CPU's/clustered machines buy me speed
of computation even though BigInt works at a software level ?? Does
sprintf help this issue ?

Thank you for your time,

Jasper
 
J

Joe Smith

Jasper said:
I convert my floating point numbers to integers, the maximum # decimal
places is 15 !! And Adding in Math::BigInt or BigFloat slows
performance to a CRAWL...does anyone have any recommendations here

Buy a computer with a 64-bit processor and use a version of perl
that was compiled to use 64-bit integers.
-Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top