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
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
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
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
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
-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
--- 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
> -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
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 =
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 = "$
10 matches
Mail list logo