1
0
Fork 0
freesewing/sites/dev/docs/reference/api/utils/round/readme.mdx

19 lines
226 B
Text
Raw Normal View History

---
title: utils.round()
---
The `utils.round()` function rounds a value to two decimals.
## Signature
```js
float utils.round(float value)
```
## Example
```js
utils.round(0.1234) // 0.12
utils.round(5.6789) // 5.68
```