# Function Reference

# _WinAPI_FloatToInt

Returns a 4 byte float as an integer value

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

## Parameters

$nFloat | Float value

## Return Value

Returns an 4 byte float value as an integer

## Example

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

    Example()

    Func Example()
        Local $fFloat, $sText, $iInt
        $fFloat = 10.55
        $iInt = _WinAPI_FloatToInt($fFloat)
        $sText = "The float " & $fFloat & " is converted to the Integer " & $iInt & " (Hex = " & Hex($iInt) & ")"
        MsgBox($MB_SYSTEMMODAL, "_WinAPI_FloatToInt Example Results", $sText)
    EndFunc   ;==>Example