Update solution.md
Math.round(63.5) should return 64, not 63.
This commit is contained in:
parent
144a2fe6c3
commit
0c86e0c8db
1 changed files with 1 additions and 1 deletions
|
@ -28,6 +28,6 @@ Note that `63.5` has no precision loss at all. That's because the decimal part `
|
|||
|
||||
|
||||
```js run
|
||||
alert( Math.round(6.35 * 10) / 10); // 6.35 -> 63.5 -> 63(rounded) -> 6.3
|
||||
alert( Math.round(6.35 * 10) / 10); // 6.35 -> 63.5 -> 64(rounded) -> 6.4
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue