
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus setup. It's part of my efforts to simplify FreeSewing's setup so we can focus on our core value proposition.
18 lines
226 B
Text
18 lines
226 B
Text
---
|
|
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
|
|
```
|