User Tools

Site Tools


function:ROUND

**This is an old revision of the document!**

The ROUND() function takes a number and returns the nearest integer to the argument. Numbers that are exactly half way (ie, end in “.5”) round away from zero.

ROUND(5.4) === ROUND(5.1) === ROUND(4.5) === 5
ROUND(-5.5) === ROUND(-5.9) === ROUND(-6.3) === -6

See also CEIL, FLOOR, and TRUNC.

function/ROUND.1421571818.txt.gz · Last modified: 2015/01/18 04:03 by peternlewis