I am not very experienced with perl and this test I am doing has me stumped, it appears to be rounding off numbers. Code:
use strict; use warnings; use Math::BigInt; my @CRCTable; $CRCTable[0] = Math::BigInt->new("0x3243bcfe21ef4468"); $CRCTable[1] = Math::BigInt->new("0xef453276bdbde566"); $CRCTable[2] = Math::BigInt->new("0x2342ed65876ab55f"); for (my $i=0; $i<3; $i++) { printf("%X\n",$CRCTable[$i]); }
Output is:
3243BCFE21EF4400 EF453276BDBDE800 2342ED65876AB600
Why the 2 trailing zeros ?
In reply to Rounding off ? by Zomalaja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |