# $floor

Update records by setting the value of a numeric column to the largest integer less than or equal to its current value. The $floor method is used to modify numeric fields by rounding down to the nearest whole number, ensuring that values are always rounded down rather than up. This is useful when you want to ensure the value doesn’t exceed a certain integer threshold.

```typescript
await Member.$update({
    $where: { 
        age: { 
            $eq: 16 
        } 
    },
    $update: {
        $floor: {
          age: 1
        }
    }
});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fivesobes.gitbook.io/nexorm/operators/update-operators/number-operators/usdfloor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
