ODD

The ODD function returns the number passed as an argument rounded to the nearest odd number that is greater than or equal to the argument considered in absolute value (that is, it returns the closest odd number that is farther from zero than the number in question).

Syntax

ODD(
    number
)

Parameters
  • number: Number to round.
Returned value

The ODD function returns an integer.

Additional Information

If number is a positive value, ODD returns the odd integer greater than or equal to number closest to it. However, if number is a negative number, ODD returns the odd less than or equal to number closest to it. That is, the ODD function preserves the sign of the number:

ODD function. Example of use

If number is an odd number, the ODD function returns the same number.

Related functions
Category
Mathematical and trigonometric
Submitted by admin on Tue, 12/04/2018 - 12:48