Fermulator
Programmer
I'm trying to do some fancy footwork with HEX numbers. Basically, I want to take a HEX number, convert to decimal, add some number (integer) to it, and convert it back to HEX.
% set hex 0xFFFFFFFFFFFF
0xFFFFFFFFFFFF
% set hexInDec [expr $hex]
281474976710655
% set decBackToHex [format %x $hexInDec]
integer value too large to represent
while evaluating {set hexBackToHex [format %x $hexInDec]}
% set hex 0xFFFFFFFFFFFF
0xFFFFFFFFFFFF
% set hexInDec [expr $hex]
281474976710655
% set decBackToHex [format %x $hexInDec]
integer value too large to represent
while evaluating {set hexBackToHex [format %x $hexInDec]}