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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:ISODD_ADD function}}
 +
{{Documentation/CalcFunc InformationTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_ISODD_function
 +
|NextPage=Documentation/How_Tos/Calc:_ISREF_function
 +
}}__NOTOC__
  
 
== ISODD_ADD  ==
 
== ISODD_ADD  ==
Line 11: Line 16:
 
:<tt>'''value'''</tt> is the value to be checked.
 
:<tt>'''value'''</tt> is the value to be checked.
  
:If <tt>'''value'''</tt> is not an integer any digits after the decimal point are ignored. The sign of <tt>'''value'''</tt> is also ignored.
+
:If <tt>'''value'''</tt> is not an integer, any digits after the decimal point are ignored. The sign of <tt>'''value'''</tt> is also ignored.
  
 
=== Example: ===
 
=== Example: ===
Line 26: Line 31:
 
: returns <tt>'''1'''</tt>. Ignoring the sign and digits after the decimal point gives 3, which is odd.
 
: returns <tt>'''1'''</tt>. Ignoring the sign and digits after the decimal point gives 3, which is odd.
  
=== See also: ===
+
=== Issues: ===
'''[[Documentation/How_Tos/Calc: ISODD function|ISODD]]''',
+
<tt>'''ISEVEN_ADD'''</tt> and <tt>'''ISODD_ADD'''</tt> are intended to mimic certain non-standard behavior in Excel.
'''[[Documentation/How_Tos/Calc: ISEVEN_ADD function|ISEVEN_ADD]]'''
+
  
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]'''
+
{{SeeAlso|EN|
 +
* [[Documentation/How_Tos/Calc: ISODD function|ISODD]]
 +
* [[Documentation/How_Tos/Calc: ISEVEN_ADD function|ISEVEN_ADD]]
  
=== Issues: ===
+
* [[Documentation/How_Tos/Calc: Information functions|Information functions]]
<tt>'''ISEVEN_ADD'''</tt> and <tt>'''ISODD_ADD'''</tt> are intended to mimic certain non-standard behaviour in Excel.
+
 
 +
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 +
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 +
[[Category: Documentation/Reference/Calc/Information functions]]

Latest revision as of 13:24, 31 January 2024

ISODD_ADD

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

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

Syntax:

ISODD_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:

ISODD_ADD(33)

returns 1.

ISODD_ADD(48)

returns 0.

ISODD_ADD(3.999)

returns 1. Ignoring digits after the decimal point gives 3, which is odd.

ISODD_ADD(-3.1)

returns 1. Ignoring the sign and digits after the decimal point gives 3, which is odd.

Issues:

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



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ISODD_ADD_function&oldid=259816"
Views
Personal tools
Navigation
Tools
In other languages