TRUNCΒΆ
The IEC Operators and additional, norm-extending \ functions Converting from REAL to INT. The whole number portion of the value will be used.
When you perform a type conversion from a larger to a smaller type, you risk losing some information.
Example in IL:
LD 2.7 TRUNC GE %MW8
Examples in ST:
i:=TRUNC(1.9); (* Result is 1 *)
i:=TRUNC(-1.4); (* Result is -1 *)