function:ROUND
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| function:ROUND [2015/01/18 09:03] – created peternlewis | function:ROUND [2023/09/20 08:42] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== ROUND Function ====== | ||
| + | |||
| The ROUND() function takes a number and returns the nearest integer to the argument. | The ROUND() function takes a number and returns the nearest integer to the argument. | ||
| Line 4: | Line 6: | ||
| ROUND(-5.5) === ROUND(-5.9) === ROUND(-6.3) === -6 | ROUND(-5.5) === ROUND(-5.9) === ROUND(-6.3) === -6 | ||
| - | See also [[CEIL]], [[FLOOR]], and [[TRUNC]]. | + | The ROUND() function (v11.0+) takes a second optional parameter to indicate the number of decimal digits to round to: |
| + | |||
| + | ROUND(5.6789, | ||
| + | ROUND(-5.6789, | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | === Functions === | ||
| + | |||
| + | * [[CEIL]] | ||
| + | * [[FLOOR]] | ||
| + | * [[TRUNC]] | ||
| + | * [[: | ||
function/ROUND.1421571818.txt.gz · Last modified: by peternlewis
