> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metrics-man.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ceil

# \$ceil

The `$ceil` operator returns the smallest integer value that is greater than or equal to the input value.

## Input

* A single numeric value

## Output

* The ceiling of the input value (rounded up to the nearest integer)

## Examples

### Decimal Below .5

```json theme={null}
{
  "$ceil": [
    3.2
  ]
}
```

Result: `4`

### Decimal Above .5

```json theme={null}
{
  "$ceil": [
    7.8
  ]
}
```

Result: `8`

### Exact Integer

```json theme={null}
{
  "$ceil": [
    5
  ]
}
```

Result: `5`

### Negative Number

```json theme={null}
{
  "$ceil": [
    -3.2
  ]
}
```

Result: `-3`

### Field Value

```json theme={null}
{
  "$ceil": [
    {
      "$input": "average_rating"
    }
  ]
}
```

Result: The ceiling of the average\_rating field
