mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-08 15:58:33 +00:00
Merge pull request #838 from m90/patch-1
[javascript/en] use proper notation for decimals
This commit is contained in:
commit
9abff80ab8
@ -46,7 +46,7 @@ doStuff()
|
|||||||
|
|
||||||
// Some basic arithmetic works as you'd expect.
|
// Some basic arithmetic works as you'd expect.
|
||||||
1 + 1; // = 2
|
1 + 1; // = 2
|
||||||
.1 + .2; // = 0.30000000000000004
|
0.1 + 0.2; // = 0.30000000000000004
|
||||||
8 - 1; // = 7
|
8 - 1; // = 7
|
||||||
10 * 2; // = 20
|
10 * 2; // = 20
|
||||||
35 / 5; // = 7
|
35 / 5; // = 7
|
||||||
|
Loading…
Reference in New Issue
Block a user