Convert hex str to decimal value in delphi

前端 未结 4 723
清歌不尽
清歌不尽 2021-01-18 01:24

I\'ve got a problem to convert a string representation of an hex value in integer value with Delphi.

for example:

$FC75B6A9D025CB16 give me 8

4条回答
  •  深忆病人
    2021-01-18 02:00

    The number is too big to be represented as a signed 64-bit number.

    FC75B6A9D025CB16h = 18191647110290852630d
    

    The largest possible signed 64-bit value is

    2^63 - 1 = 9223372036854775807
    

提交回复
热议问题