Update snippet descriptions
This commit is contained in:
@ -6,7 +6,7 @@ tags: math,intermediate
|
||||
Rounds a number to a specified amount of digits.
|
||||
|
||||
- Use `Math.round()` and template literals to round the number to the specified number of digits.
|
||||
- Omit the second argument, `decimals` to round to an integer.
|
||||
- Omit the second argument, `decimals`, to round to an integer.
|
||||
|
||||
```js
|
||||
const round = (n, decimals = 0) =>
|
||||
|
||||
Reference in New Issue
Block a user