Policies & Guidelines

ODD

Rounds a number up to the nearest odd integer

Description

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