Difference between revisions of "Manuals/calci/ODD"
Jump to navigation
Jump to search
| Line 12: | Line 12: | ||
*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 - | ||
| + | Type ODD(1..10) in Calci | ||
| + | |||
| + | or =ODD(1..10) in [[ZOS]] | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! Numbers !! ODD | ||
| + | |- | ||
| + | | 1 || 1 | ||
| + | |- | ||
| + | | 2 || 3 | ||
| + | |- | ||
| + | | 3 || 3 | ||
| + | |- | ||
| + | | 4 || 5 | ||
| + | |- | ||
| + | | 5 || 5 | ||
| + | |- | ||
| + | | 6 || 7 | ||
| + | |- | ||
| + | | 7 || 7 | ||
| + | |- | ||
| + | | 8 || 9 | ||
| + | |- | ||
| + | | 9 || 9 | ||
| + | |- | ||
| + | | 10 || 11 | ||
| + | |} | ||
| + | |||
== Examples == | == Examples == | ||
Revision as of 06:19, 14 December 2013
ODD(number)
- where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle number} 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 Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle number} , Calci returns an #ERROR message.
- The Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle number} is rounded up away from zero to its nearest odd integer, irrespective of its sign.
- ODD() can be used with array of numbers as -
Type ODD(1..10) in Calci
or =ODD(1..10) in ZOS
| Numbers | ODD |
|---|---|
| 1 | 1 |
| 2 | 3 |
| 3 | 3 |
| 4 | 5 |
| 5 | 5 |
| 6 | 7 |
| 7 | 7 |
| 8 | 9 |
| 9 | 9 |
| 10 | 11 |