> For the complete documentation index, see [llms.txt](https://fivesobes.gitbook.io/nexorm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivesobes.gitbook.io/nexorm/operators/update-operators/number-operators/usdabs.md).

# $abs

Update records by setting the value of a numeric column to its absolute value. The $abs method is used to transform a numeric field by removing any negative sign, ensuring that the value is always positive or zero. This is useful when working with data that should not have negative values, such as distances, counts, or other non-negative metrics.

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