# ODD

**The function ODD rounds a number up to the nearest odd integer.**

This function takes a single [Number](../../variable-data-types/the-number-variable-data-type) as input. It returns another Number: the given number, rounded up to the nearest odd integer.

#### Declaration

```javascript
ODD(number) -> odd_number
```

&#x20;

#### Parameters

**number** (required, type: _Number_) The number to round.

#### Return Values

**odd\_number** (type: _Number_) The given number, rounded up to the nearest odd integer.

#### Examples

The following example takes the even number 2 and rounds it up to the nearest odd integer:

```javascript
OOD(2) -> 3
```

The following example takes the number 5.1573 and rounds it up to 7. Note that it doesn't matter that 5.1573 is much closer to the odd number 5. The ODD function always rounds the given number up:

```javascript
ODD(5.1573) -> 7
```

When given an odd integer, the ODD function simple returns the given number unmodified. This is what happens in the following example, when the ODD function takes the odd integer 7 as input:

```javascript
ODD(9) -> 9
```
