Convert hex str to decimal value in delphi
问题 I've got a problem to convert a string representation of an hex value in integer value with Delphi. for example: $FC75B6A9D025CB16 give me 802829546 when i use the function: Abs(StrToInt64('$FC75B6A9D025CB16')) but if i use the calc program from Windows, the result is: 18191647110290852630 So my question is: who's right? me, or the calc? Does anybody already have this kind of problem? 回答1: In fact 802829546 is clearly wrong here. Calc returns a 64bit unsigned value ( 18191647110290852630d ).