ODD

Rounds the number (away from zero) to an odd number

Usage

ODD(number)

Parameters

number

(Required) The number to round

Examples

Example With these variables Result

ODD(5)

(None)

5

ODD(10)

(None)

11

ODD(number)

number is 3.1

5

ODD(number)

number is -3.1

-5

More information

If number is already odd, then number is returned as is.

Reminders

A text containing digits is not handled as a number. To have an actual number:

  • use the @NUMBER_QUESTION to set the variable
  • write a numeric value directly in the code without quotes, ex: age >= 18
  • use a function which converts to a number: NUMBER(text_containing_numbers)
  • use a function which returns a number: FIND("world", "hello everybody")

See also