# Numbers

### 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.
```
