ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
Re: [perl #56608] Math::BigInt gives completely when Math::BigInt::GMP is used
by Matt Kraai other posts by this author
Jul 5 2008 8:59AM messages near this date
Re: [perl #56608] Math::BigInt gives completely when Math::BigInt::GMP is used | Re: [perl #56608] Math::BigInt gives completely when Math::BigInt::GMP is used
Howdy,

I was able to reproduce the original problem on my system and, after
making the change suggested by Tels, found that the commands produced
the following output:

 $ perl -MMath::BigInt=lib,GMP -e 'my $b = 0xc0010203; my $m = Math::BigInt-> new (2) ** 24 -
 1; warn $m + $b'
 3238068738 at -e line 1.
 $ perl -MMath::BigInt=lib,GMP -e 'my $b = 0xc0010203; my $m = Math::BigInt-> new (2) ** 32 -
 1; warn $m + $b'
 7516258818 at -e line 1.

These match the results produced by bc.

Here's the output requested by Bram:

 $ perl -MMath::BigInt=lib,GMP -Mbignum=version
 bignum			 v0.23
 Math::BigInt		 v1.89 lib =>  Math::BigInt::GMP v1.24
 Math::BigFloat		 v1.60

The output requested by Tels was the same.

-- 
Matt                                                 http://ftbfs.org/
Thread:
Marc Lehmann
Bram
Matt Kraai
Tels
Tels

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved