Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: math,beginner
|
||||
|
||||
Converts a number to a decimal mark formatted string.
|
||||
|
||||
Use `Number.prototype.toLocaleString()` to convert the numbre to decimal mark format.
|
||||
- Use `Number.prototype.toLocaleString()` to convert the numbre to decimal mark format.
|
||||
|
||||
```js
|
||||
const toDecimalMark = num => num.toLocaleString('en-US');
|
||||
|
||||
Reference in New Issue
Block a user