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

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:ISODD function}}
 +
{{Documentation/CalcFunc InformationTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_ISNUMBER_function
 +
|NextPage=Documentation/How_Tos/Calc:_ISODD_ADD_function
 +
}}__NOTOC__
  
 
== ISODD  ==
 
== ISODD  ==
Line 9: Line 14:
 
:<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 25: Line 30:
  
 
=== Issues: ===
 
=== Issues: ===
<tt>'''ISEVEN'''</tt> and <tt>'''ISODD'''</tt> are listed in the Mathematical category of the Application Help (OOo2.3). They are clearly similar to other  <tt>'''IS'''</tt> functions in returning information, and belong in the Information category; however as they are listed under Mathematical in the Function Wizard, they are currently shown in that category also.
+
<tt>'''ISEVEN'''</tt> and <tt>'''ISODD'''</tt> are listed in the Mathematical category of the Application Help (OOo2.3). They are clearly similar to other  <tt>'''IS'''</tt> functions in returning information, and belong in the Information category; however, as they are listed under Mathematical in the Function Wizard, they are currently shown in that category also.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: ISEVEN function|ISEVEN]]
 
* [[Documentation/How_Tos/Calc: ISEVEN function|ISEVEN]]
 
* [[Documentation/How_Tos/Calc: ISODD_ADD function|ISODD_ADD]]
 
* [[Documentation/How_Tos/Calc: ISODD_ADD function|ISODD_ADD]]

Latest revision as of 13:24, 31 January 2024

ISODD

Returns TRUE if the value is an odd number, or FALSE if the value is even.

Syntax:

ISODD(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(33)

returns TRUE.

ISODD(48)

returns FALSE.

ISODD(3.999)

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

ISODD(-3.1)

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

Issues:

ISEVEN and ISODD are listed in the Mathematical category of the Application Help (OOo2.3). They are clearly similar to other IS functions in returning information, and belong in the Information category; however, as they are listed under Mathematical in the Function Wizard, they are currently shown in that category also.



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