1
0
Fork 0

chore(markdown): Updated utils docs for v3

This commit is contained in:
Joost De Cock 2022-10-01 22:20:43 +02:00
parent acf1b72c4c
commit bc3b0cd770
23 changed files with 782 additions and 622 deletions

View file

@ -1,12 +1,18 @@
---
title: round()
title: utils.round()
---
The `utils.round()` function rounds a value to two decimals.
## Signature
```js
float utils.round(float value)
```
Rounds a value to two decimals. For example:
## Example
- 0.1234 becomes 0.12
- 5.6789 becomes 5.68
```js
utils.round(0.1234) // 0.12
utils.round(5.6789) // 5.68
```