Difference between revisions of "Documentation/How Tos/Calc: EVEN function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
Line 21: Line 21:
 
<tt>'''EVEN(-0.5)'''</tt>
 
<tt>'''EVEN(-0.5)'''</tt>
 
: returns <tt>'''-2'''</tt>.
 
: returns <tt>'''-2'''</tt>.
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 06:33, 2 March 2008


EVEN

Rounds a number up, away from zero, to the next even integer.

Syntax:

EVEN(number)

returns number rounded to the next even integer up, away from zero.

Example:

EVEN(2.3)

returns 4.

EVEN(2)

returns 2.

EVEN(0)

returns 0.

EVEN(-0.5)

returns -2.

See also:

CEILING, FLOOR, ODD, MROUND

INT, TRUNC, ROUND, ROUNDDOWN, ROUNDUP

Mathematical functions

Personal tools