> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.getfoundry.sh/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

## `abs`

### Signature

```solidity
function abs(int256 a) internal pure returns (uint256)
```

### Description

Returns the absolute value of a number.

### Example

```solidity
uint256 ten = stdMath.abs(-10);
```
