TRUNCPermalink

IEC operator: Converting from REAL to INT. The whole number portion of the value will be used.

⮫ “Overview”

When you perform a type conversion from a larger to a smaller type, you risk losing some information.

Examples in ST:

i:=TRUNC(1.9); (* Result is 1 *)
i:=TRUNC(-1.4); (* Result is -1 *)