> For the complete documentation index, see [llms.txt](https://monytools.gitbook.io/type/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://monytools.gitbook.io/type/numbers.md).

# Numbers

Auxiliary functions for Numbers types.

### Round

`MTools.Number.Round(value);`

| Name  | Type     | Description             |
| ----- | -------- | ----------------------- |
| value | `number` | The number to round off |

**Allows you to round a number to the nearest.**\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
print(MTools.Number.Round(0.5));
-- Will return the number 1.
```

### Fixed

`MTools.Number.Fixed(value, digits);`

| Name   | Type     | Description                      |
| ------ | -------- | -------------------------------- |
| value  | `number` | The number for the fix           |
| digits | `number` | Number of digits after the point |

**Allows you to trim a number to the desired size.**\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
print(MTools.Number.Fixed(0.123456789, 2));
-- Will return the number 0.12.
```
