how add the multi, or arbitrary precision capability to perl programs

J

Jack

Greetings, I am trying to work beyond 15 floating pt decimal places in
my perl calculations, wondering where to find info on how display and
calculate at a higher level of precision.. is it a special library ?

Thank you,

Jack
 
P

Paul Lalli

Greetings, I am trying to work beyond 15 floating pt decimal places in
my perl calculations, wondering where to find info on how display and
calculate at a higher level of precision.. is it a special library ?

Have a look at
perldoc Math::BigFloat

That might do what you want.

Paul Lalli
 
J

Jack

Paul Lalli said:
Have a look at
perldoc Math::BigFloat

That might do what you want.

Paul Lalli

Thank you very much .. I tried using this, and not being a Perl
expert, have a few questions b/c it is not clear...I am running an
equation that is iterative, and my basic request is to print and
calculate precision > 15 floating point..So I added this code around
my critical variables at the top of my program..

use Math::BigFloat;
Math::BigFloat->precision(30);
$x = Math::BigFloat->new($str);
$x->precision(30);

And it doesnt provide what I seeking, any tips from the experts out
there on how to precisionify a program's variables ?

Thanks and Regards,

Jack
 

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
474,269
Messages
2,571,100
Members
48,773
Latest member
Kaybee

Latest Threads

Top