Posted on 2006-05-11 14:00:34-07 by cmv
Problem with BinInt->new() and Hex Values
Folks-
I'm just learning to use Math::BigInt, and am seeing a problem. Please tell me what I'm doing wrong.
The following works fine:
my $bt = Math::BigInt->new(0x0000000dbbec12cf); print "bt=$bt\n";
However, this doesn't work at all:
my $hex = "0x0000000dbbec12cf"; my $bt = Math::BigInt->new($hex); print "bt=$bt\n";
I get "Nan" for this second case. Any ideas?
Thanks
-Craig
Direct Responses: 2299 | Write a response
Posted on 2006-05-14 10:47:34-07 by tels in response to 2280
Re: Problem with BinInt->new() and Hex Values
I see from the second example:
bt=58987385551
What Perl/BigInt version are you using? If the problem still persists, please file a bugreport under https://rt.cpan.org.
Best wishes,
tels
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.