◄Summary► ◄Details► ◄Example► ◄Back► Argument number Integer or real expression Returns LongInt Number without its fractional part Description The Trunc function takes an integer or real value and returns a whole number as a LongInt type. Trunc rounds the number toward zero, discarding any fractional part and returning the whole number part. Trunc is similar to the Int function, but Trunc returns an integer while Int returns a real type. If the return value exceeds the range of a LongInt, a run-time error occurs.