in reply to Hex to decimal resulting in integer overflow

Your build of Perl cannot hold numbers that big (48 bits).

Update: Added mention on Math::BigInt, Math::Int64 and Math::Int128.
Update: Fixed bug. (0x12 is not the same as "0"x12!)

Replies are listed 'Best First'.
Re^2: Hex to decimal resulting in integer overflow
by ikegami (Patriarch) on Apr 01, 2011 at 17:55 UTC

    Turns out that hex will actually use floating point numbers if required. The warning doesn't indicate outright failure as Isuspected; it indicate a potentional loss of precision. But it you're numbers are no more than 53 bits in size, there is no problem and you can silence the warning.