Difference between revisions of "Documentation/How Tos/Calc: ISODD function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
(→See also:) |
||
Line 30: | Line 30: | ||
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]''', | '''[[Documentation/How_Tos/Calc: Information functions|Information functions]]''', | ||
'''[[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]''' | '''[[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]''' | ||
+ | |||
+ | [[Documentation/How_Tos/Calc: Functions listed alphabetically|'''Functions listed alphabetically''']], | ||
+ | [[Documentation/How_Tos/Calc: Functions listed by category|'''Functions listed by category''']] | ||
=== 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. |
Revision as of 06:28, 13 September 2008
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.
See also:
Information functions, Mathematical functions
Functions listed alphabetically, Functions listed by category
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.