I came from mainframes, FORTRAN, ASSEMBLER, etc...
Then you should understand the problems of trying to fit a 64-bit value in a 32-bit integer or 53-bit precision float.
I did do was include the following in my source code: use bignum; print MATH::BIGINT->new("0xbe91cfb586466d02"); Now, interestingly enough, the following printed out: 1373198511737814553812
The module is Math::BigInt. That doesn't run.
This is the second time you've told us you got A from B when you didn't.
Now, interestingly enough, the following printed out: 1373198511737814553812 - ..where did the final '12' come from? ..was it the semicolon?
What semicolon? 0x12 is the code point for newline in ASCII-based character sets. Seems the code you showed us is not even close to what you used.
| [reply] |
The following is my bare-bones Perl code:
#!/fs/COTS/gnu/bin/AIX/perl
use bignum ;
print Math::BigInt->new("0xbe91cfb586466d02"),"\n";
When I execute this (name:hx2int.pl) on a command line, I get the following which is exactly what I want:
13731985117378145538
After almost sixty years I fear I've probably lost a few bits myself - you're right, I should know about trying to cram ten pounds of manure into a five-pound bag...
| [reply] |