chore(markdown): Updated utils docs for v3
This commit is contained in:
parent
acf1b72c4c
commit
bc3b0cd770
23 changed files with 782 additions and 622 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue