mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 15:51:41 +03: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.
|
||||
1 + 1; // = 2
|
||||
.1 + .2; // = 0.30000000000000004
|
||||
0.1 + 0.2; // = 0.30000000000000004
|
||||
8 - 1; // = 7
|
||||
10 * 2; // = 20
|
||||
35 / 5; // = 7
|
||||
|
Loading…
Reference in New Issue
Block a user