ReferenceFunctionsMath Functions
ODD
Rounds a number away from zero to the nearest odd integer.
Summary
Rounds a number away from zero to the nearest odd integer.
Remarks
- Values already equal to an odd integer stay unchanged.
- Positive and negative values both move away from zero.
0returns1.
Examples
Round a positive number to odd
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
3
Round a negative number away from zero
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
-3
Related functions
FAQ
Why does ODD(0) return 1?
ODD rounds away from zero to the nearest odd integer, so zero maps to positive one.
Runtime metadata
Category
Math
Signature
ODD(arg1: Number)Arity
min 1, max 1
Arguments
arg1Number · Scalar · coercion NumberLenientText
Caps
PURE
Source