TRUNC - truncate a real value to its integer part.

Usage:

i := trunc(r);

Where:

r
is a real expression.
i
is integer.

Description:

The "trunc" function truncates a real value to its integer part. For example,

trunc(3.3)   = 3
trunc(3.7)   = 3
trunc(-3.3)  = -3
trunc(-3.7)  = -3

See Also:

expl pascal lib round

Copyright © 1996, Thinkage Ltd.