The FloatToInt() NWScript command converts a float to an integer. The fractional part of the float is discarded (not rounded to the nearest integer as would be implied by the internal documentation).
To get a float rounded to the nearest integer, add 0.5 before the conversion.
Definition
int FloatToInt (float fFloat)
float fFloat- The floating point number that will be converted (truncated) to an integer.