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 a number up to the nearest odd integer.
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 #NULL 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 -
In ZOS:
- ODD(1..10) or
- 1..10@ODD
In Calci:
- =ODD(1..10) or
- =1..10@ODD
| Numbers | ODD |
|---|---|
| 1 | 1 |
| 2 | 3 |
| 3 | 3 |
| 4 | 5 |
| 5 | 5 |
| 6 | 7 |
| 7 | 7 |
| 8 | 9 |
| 9 | 9 |
| 10 | 11 |
Examples
| Function | Output |
| ODD(98) | 99 |
| ODD(-23) | -23 |
| ODD(34.98989898) | 35 |
| ODD(-5.2) | -7 |
| ODD(666) | 667 |
Related Videos
See Also
References