function:TRUNC
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| function:TRUNC [2015/01/18 08:59] – created peternlewis | function:TRUNC [2023/09/20 08:37] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== TRUNC Function ====== | ||
| + | |||
| The TRUNC() function takes a number and returns the first integer that is equal to or closer to zero than the argument: | The TRUNC() function takes a number and returns the first integer that is equal to or closer to zero than the argument: | ||
| Line 4: | Line 6: | ||
| TRUNC(-5.5) === TRUNC(-5.1) === TRUNC(-5) === -5 | TRUNC(-5.5) === TRUNC(-5.1) === TRUNC(-5) === -5 | ||
| - | See also [[CEIL]], [[FLOOR]], and [[ROUND]]. | + | The TRUNC() function (v11.0+) takes a second optional parameter to indicate the number of digits to truncate to. |
| + | |||
| + | TRUNC(5.6789, | ||
| + | TRUNC(-5.6789, | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | === Functions === | ||
| + | |||
| + | * [[CEIL]] | ||
| + | * [[FLOOR]] | ||
| + | * [[ROUND]] | ||
| + | * [[: | ||
function/TRUNC.1421571557.txt.gz · Last modified: by peternlewis
