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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m
Line 24: Line 24:
 
<tt>'''ISEVEN_ADD(-2.1)'''</tt>
 
<tt>'''ISEVEN_ADD(-2.1)'''</tt>
 
: returns <tt>'''1'''</tt>. Ignoring the sign and digits after the decimal point gives 2, which is even.
 
: returns <tt>'''1'''</tt>. Ignoring the sign and digits after the decimal point gives 2, which is even.
 +
 +
=== Issues: ===
 +
<tt>'''ISEVEN_ADD'''</tt> and <tt>'''ISODD_ADD'''</tt> are intended to mimic certain non-standard behaviour in Excel.
  
 
{{Documentation/SeeAlso|
 
{{Documentation/SeeAlso|
Line 34: Line 37:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
=== Issues: ===
 
<tt>'''ISEVEN_ADD'''</tt> and <tt>'''ISODD_ADD'''</tt> are intended to mimic certain non-standard behaviour in Excel.
 

Revision as of 10:54, 2 March 2009


ISEVEN_ADD

Returns 1 if the value is an even number, or 0 if the value is odd.

This function is only available if the Analysis AddIn is installed.

Syntax:

ISEVEN_ADD(value)

value is the value to be checked.
If value is not an integer any digits after the decimal point are ignored. The sign of value is also ignored.

Example:

ISEVEN_ADD(48)

returns 1.

ISEVEN_ADD(33)

returns 0.

ISEVEN_ADD(0)

returns 1.

ISEVEN_ADD(3.999)

returns 0. Ignoring digits after the decimal point gives 3, which is not even.

ISEVEN_ADD(-2.1)

returns 1. Ignoring the sign and digits after the decimal point gives 2, which is even.

Issues:

ISEVEN_ADD and ISODD_ADD are intended to mimic certain non-standard behaviour in Excel.

Template:Documentation/SeeAlso

Personal tools