odd() Function

Rounds positive numbers up to nearest odd integer and negative numbers down to the nearest odd integer.

Syntax

odd( number )

number: (Decimal) The number that will be rounded.

Returns

Integer

Examples

You can experiment with this function in the test box below.

Test Input

odd(31.5) returns 33

Open in Github Built: Fri, Sep 17, 2021 (04:03:56 PM)

On This Page

FEEDBACK