whitneyt at agcs.com
Wed Aug 1 16:15:58 CDT 2001
Here is the problem I was having last year. Just ran it again same problem. I am running on v5.6.0. I don't see anything wrong that I am doing.
Script started on Thu Aug 17 15:57:29 2000
peoblej at holodeck: cat bug.pl
my $result = 0.0;
$result = 0.07 * 10000.0;
printf "%40.35f\n", $result;
peoblej at holodeck: bug.pl
peoblej at holodeck: exit
script done on Thu Aug 17 15:57:44 2000
Scott Walters wrote:
> Hey Tom,
> Well, looking at Math::BigInt/BigFloat, they do everything in Perl by
> unpacking into an array from a string... something in C or Perl
> that minipulated it directly in its binary format would be much faster...
> what problems were you having with perls built in operators? Overflow?
> Precision? Don't know of anything offhand, and I assume you've searched
> CPAN... If you wanted to use a C library, Doug just did a demo on
> [what was that?] Embed, which makes it really easy to stick some C
> right in middle of your Perl.
> On Wed, 1 Aug 2001, Thomas Whitney wrote:
> > Hi All,
> > I am doing a lot of decimal arithmetic. I ran into problems using perl's standard arithmetic. Right now I am using Math::BigFloat, but it seems slow. Can anybody recommend a better module
> > Thanks
> > Tom
More information about the Phoenix-pm