Funktionreferenz


_WinAPI_FloatToInt

Beschreibung anzeigen in

Gibt eine 4 Byte Gleitkommazahl als Integerwert zurück

#include <WinAPIConv.au3>
_WinAPI_FloatToInt ( $nFloat )

Parameter

$nFloat Gleitkommazahl

Rückgabewert

Gibt eine 4 Byte Gleitkommazahl als Integerwert zurück

Beispiel

#include <MsgBoxConstants.au3>
#include <WinAPIConv.au3>

Example()

Func Example()
    Local $fFloat, $sText, $iInt
    $fFloat = 10.55
    $iInt = _WinAPI_FloatToInt($fFloat)
    $sText = "Die Gleitkommazahl " & $fFloat & " ergibt konvertiert in einen Integerwert: " & $iInt & " (Hex = " & Hex($iInt) & ")"
    MsgBox($MB_SYSTEMMODAL, "_WinAPI_FloatToInt Beispielergebnisse", $sText)
EndFunc   ;==>Example