You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
177 B
11 lines
177 B
1 year ago
|
# `Math.round10` _(ext/math/round-10)_
|
||
|
|
||
|
Decimal round
|
||
|
|
||
|
```javascript
|
||
|
const round10 = require("ext/math/round-10");
|
||
|
|
||
|
round10(55.549, -1); // 55.5
|
||
|
round10(1.005, -2); // 1.01
|
||
|
```
|