TRUNC

TRUNC(arg1, arg2) → { number | string | boolean }

Truncates a number to an integer by removing the decimal, or fractional, part of the number.

Parameters:

Name Type Description
arg1 number

Is the number you want to truncate.

arg2 number

Is a number specifying the precision of the truncation, 0 (zero) if omitted.

Returns:

Type
number | string | boolean