1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-05 06:17:36 +02:00

Merge pull request #838 from m90/patch-1

[javascript/en] use proper notation for decimals
This commit is contained in:
Adam Bard
2014-10-31 00:35:46 +02:00

View File

@@ -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