> ## 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.

# Floor

# \$floor

The `$floor` operator returns the largest integer value that is less than or equal to the input value.

## Input

* A single numeric value

## Output

* The floor of the input value (rounded down to the nearest integer)

## Examples

### Decimal Below .5

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

Result: `3`

### Decimal Above .5

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

Result: `7`

### Exact Integer

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

Result: `5`

### Negative Number

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

Result: `-4`

### Field Value

```json theme={null}
{
  "$floor": [
    {
      "$input": "average_score"
    }
  ]
}
```

Result: The floor of the average\_score field
