转换 4 字节浮点值为整型值
#Include <WinAPI.au3>
_WinAPI_FloatToInt($nFloat)
$nFloat | 浮点值 |
返回 4 字节浮点值为整型值 |
#include <WinAPI.au3>
_Main()
Func _Main()
Local $float, $text, $INT
$float = 10.55
$INT = _WinAPI_FloatToInt($float)
$text = "The float " & $float & " is converted to the Integer " & $INT & " (Hex = " & Hex($INT) & ")"
MsgBox(0, "_WinAPI_FloatToInt Example Results", $text)
EndFunc ;==>_Main