Обновить js/DOM/числа.md
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
### Окргуличть чсило
|
### Окргуличть чсило
|
||||||
|
```js
|
||||||
const num = 5.6789;
|
const num = 5.6789;
|
||||||
const result = num.toFixed(2); // "5.68"
|
const result = num.toFixed(2); // "5.68"
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user