Truncates a floating-point value to the integer component.
ret trunc(x)
Parameters
Item
Description
x
[in] The specified input.
Return Value
The input value truncated to an integer component.
Remarks
This function truncates a floating-point value to the integer component. Given a floating-point value of 1.6, the trunc function would return 1.0, whereas the round (DirectX HLSL) function would return 2.0.