2 trunc - truncate a value to a number of decimal places
14 Truncate x to j decimal places. If j is omitted, 0 places is assumed.
15 Specifying zero places makes the result identical to int().
17 Truncation of a non-integer prodcues values nearer to zero.
20 > print trunc(pi()), trunc(pi(), 5)
23 > print trunc(3.333), trunc(3.789), trunc(3.333, 2), trunc(3.789, 2)
26 > print trunc(-3.333), trunc(-3.789), trunc(-3.333, 2), trunc(-3.789, 2)
33 NUMBER *qtrunc(NUMBER *x, *j)
36 bround, btrunc, int, round