User Tools

Site Tools


function:TRUNC

The TRUNC() function takes a number and returns the first integer that is equal to or closer to zero than the argument:

TRUNC(5.5) === TRUNC(5.1) === TRUNC(5) === 5
TRUNC(-5.5) === TRUNC(-5.1) === TRUNC(-5) === -5

See also CEIL, FLOOR, and ROUND.

function/TRUNC.txt · Last modified: 2015/01/18 03:59 by peternlewis