![]() |
![]() |
![]() |
![]() |
![]() |
This function converts a float value into an integer value by removing the fractional part of the argument and returning the resulting integer.
Related keyword:
float2int(float value) return integer |
Example 1:
const integer c_tam := float2int(344.511E-2);
The constant called c_tam will have the integer value 3 (the function calculates the integer value by removing the fractional part of the argument).