TRUNC

TRUNC returns an integer value that is the truncated value of x. If x is positive or 0, this is the largest integer value less than or equal to x. If x is negative, this is the smallest integer value greater than or equal to x.
Read syntax diagramSkip visual syntax diagram
>>-TRUNC(x)----------------------------------------------------><

x
Real expression.
The base, mode, scale, and precision of the result match those of x. Except when x is fixed-point with precision (p,q), the precision of the result is given by:
  (min(N,max(p-q+1,1)),0)

where N is the maximum number of digits allowed.






Published: 23 December 2018