Odd
- 27 May 2022
- 1 Minute to read
- DarkLight
- PDF
Odd
- Updated on 27 May 2022
- 1 Minute to read
- DarkLight
- PDF
Article Summary
Returns the given number, rounded up to the nearest odd integer. If the given number is an odd integer, returns itself.
Function signature
ODD(number: Number) => Number
Parameter | Description |
---|---|
Number | Number to round |
Examples
Formula | Return value |
---|---|
ODD(2) | 3 |
ODD(0) | 1 |
ODD(-2) | -3 |
ODD(-12.3) | -13 |
ODD(12.3) | 13 |
ODD(826.745) | 827 |
ODD(-110.2) | -111 |
Was this article helpful?