# CEILING

This function takes a [Number](../../variable-data-types/the-number-variable-data-type) as input. By default, it will return the given number rounded up to the nearest integer, though it also accepts, as an option, another Number as input, which specifies which place to round down to.

**Declaration**

```javascript
CEILING(base_number, multiple) -> rounded_number
```

&#x20;

**Parameters**

**base\_number** (required, type: _Number_) Any number. This is the number that will be rounded up.

**multiple** (optional, type: _Number_) The multiple to round up to. For instance, a multiple of 10 will round the given number up to the nearest ten, while a multiple of 0.01 will round the given number up to the nearest hundredth.

**Return Values**

**rounded\_number** (type: _Number_) The base number rounded down to the given multiple.

**Examples**

The following example takes the number 21.1 and rounds it up to the nearest integer, the ones place being the default place that CEILING rounds up to. Note that, despite the number occupying the tenths place in the base number being 1 – the small number that could possibly occupy it – CEILING still rounds up:

```javascript
CEILING(21.1) -> 22
```

The following example takes the number 312 and rounds it up to the nearest hundreds place. Note again that CEILING always rounds the base number up:

```javascript
CEILING(312, 100) -> 400
```

The following example takes the number 102.11111 and rounds it up to the tenths place. Note one last time that CEILING always rounds the base number up:

```javascript
CEILING(102.11111, 0.1) -> 102.2
```

