The premise that we are working on is that it StrToFloatgives the closest representable binary floating-point value to a decimal value.
, , . , 1 . Python, :
>>> import struct
>>> struct.unpack('!d', 'ffefdcf158adbb9a'.decode('hex'))[0]
-1.7900000000000002e+308
>>> struct.unpack('!d', 'ffefdcf158adbb99'.decode('hex'))[0]
-1.79e+308
, Python , , . , ffefdcf158adbb99 , -1.79e+308 Python, , ffefdcf158adbb99 . , Delphi .
, , :
>>> hex(struct.unpack('<Q', struct.pack('<d', float('-1.79e308')))[0])
'0xffefdcf158adbb99L'
, 32- Delphi- ffefdcf158adbb99, 64- Delphi- ffefdcf158adbb9a. .