CommandstruncOn this pagetrunc trunc (num) The trunc function returns the integer closest to num in the direction of zero. The result for INF and NAN is undefined. See Also round, floor, ceil