Re: Math::BigInt maximum value

2006-02-08 Thread Tom Phoenix
On 2/8/06, Rob Benton <[EMAIL PROTECTED]> wrote: > What are the limitatins of Math::BigInt? I ask because I have a c++ > program that outputs an unsigned 64 bit integer that my perl script > picks up. Am I safe to use BigInt for this on all platforms? Have you seen the wording "Arbitrary size i

Re: Math::BigInt

2005-03-16 Thread JupiterHost.Net
my $x = Math::BigFloat->new(2); Math::BigFloat->precision(5); # 5 digits max my $y = $x->copy()->bdiv(3); # will give 0.6 print Dumper $y; The docs says "will give 0.6" so how does one get $y to give you that? That is what I can't seem to find and the Dump of $y doe

Re: Math::BigInt

2005-03-16 Thread Jay Savage
On Wed, 16 Mar 2005 13:39:34 -0600, JupiterHost.Net <[EMAIL PROTECTED]> wrote: > Hello, > > My goal is to divide two whole numbers and get the results to a given > number of decimals. [cut] > #!/usr/bin/perl > > use strict; > use warnings; > use Math::BigFloat; > use Data::Dumper; [cut] > my

Re: Math::BigInt

2005-03-16 Thread JupiterHost.Net
Peter Rabbitson wrote: AFAIK perl will handle up to 15 (14 to be exact) precision without any helpers like Math::BigFloat. Then you just use sprintf ('%.Xf', $var) where X is the precision you want. Keep in mind that standard rounding is enforced (.4 - .5 as breakpoint) Thanks Peter I think I w

Re: Math::BigInt

2005-03-16 Thread Peter Rabbitson
AFAIK perl will handle up to 15 (14 to be exact) precision without any helpers like Math::BigFloat. Then you just use sprintf ('%.Xf', $var) where X is the precision you want. Keep in mind that standard rounding is enforced (.4 - .5 as breakpoint) Peter > Hello, > > My goal is to divide two

Re: Math::BigInt

2001-11-14 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, sorry for respondint so late, I don't read that list. >Gibbs Tanton writes: >> You might want to try Math::BigFloat instead. > >I originally wrote: >> I'm trying to perform the following calculation: >> $value = ($float + $integer) * 10; >> $string

Re: Math::BigInt

2001-10-29 Thread Curtis Poe
--- Frank Newland <[EMAIL PROTECTED]> wrote: > Readers, > > I've been to cpan.org site but some of the pages are not appearing. > what does Math::BigInt do in the following perl line? > > $amount= Math::BigInt ->new("$posted_amount"); > > > tia, > > Frank > > -- > To unsubscribe, e-mail

RE: Math::BigInt

2001-10-29 Thread Bob Showalter
> -Original Message- > From: Frank Newland [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 29, 2001 11:57 AM > To: [EMAIL PROTECTED] > Subject: Math::BigInt > > > Readers, > > I've been to cpan.org site but some of the pages are not appearing. > what does Math::BigInt do in the follo

Re: Math::BigInt

2001-09-14 Thread Richard J. Barbalace
Gibbs Tanton writes: > You might want to try Math::BigFloat instead. I originally wrote: > I'm trying to perform the following calculation: > $value = ($float + $integer) * 10; > $string = "$value:test"; I now have code like the following: use Math::BigFloat; # Initial values my $float =

RE: Math::BigInt

2001-09-13 Thread Gibbs Tanton - tgibbs
You might want to try Math::BigFloat instead. -Original Message- From: Richard J. Barbalace To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: 9/13/2001 2:17 PM Subject: Math::BigInt Hi. I'm trying to perform the following calculation: $value = ($float + $integer) * 10; $string = "$