Update: Apparently I should point out that this code (obviously) has the same limitation as any code that uses Perl's NV (double) format numbers, it is limited to 53-bits of precision.
sub hex16dec{ my( $hi, $lo ) = split '(.{8}$)', $_[0]; return hex( $hi ) * 2**32 + hex( $lo ); } $value = '123456789ABCDEF'; printf "%.f\n", hex16dec $value; 81985529216486896
In reply to Re: converting big hex to dec
by BrowserUk
in thread converting big hex to dec
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |