Difference between revisions of "Manuals/calci/ODD"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
*The <math>number</math> is rounded up away from zero to its nearest odd integer, irrespective of its sign. | *The <math>number</math> is rounded up away from zero to its nearest odd integer, irrespective of its sign. | ||
*ODD() can be used with array of numbers as - | *ODD() can be used with array of numbers as - | ||
− | ODD(1..10) or 1..10@ODD in | + | In ZOS: |
+ | ODD(1..10) or | ||
+ | 1..10@ODD | ||
+ | In Calci: | ||
+ | =ODD(1..10) or | ||
+ | =1..10@ODD in Calci | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- |
Revision as of 06:30, 14 December 2013
ODD(number)
- where is the input number.
ODD() rounds the number to the nearest odd integer away from zero.
Description
ODD(number)
ODD(76) returns 77
- For a non-numeric , Calci returns an #ERROR message.
- The is rounded up away from zero to its nearest odd integer, irrespective of its sign.
- ODD() can be used with array of numbers as -
In ZOS: ODD(1..10) or 1..10@ODD In Calci: =ODD(1..10) or =1..10@ODD in Calci
Numbers | ODD |
---|---|
1 | 1 |
2 | 3 |
3 | 3 |
4 | 5 |
5 | 5 |
6 | 7 |
7 | 7 |
8 | 9 |
9 | 9 |
10 | 11 |