# $round

Update records by setting the value of a numeric column to its rounded value based on a specified number of decimal places. The $round method is used to round a numeric field to the nearest whole number or to a specific number of decimals. For example, if the column value is 3.14159 and you use $round: 2, it will be rounded to 3.14. This is useful when you want to ensure the values are standardized and do not have excessive decimal places.

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


---

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