summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2014-10-31 00:35:46 +0200
committerAdam Bard <github@adambard.com>2014-10-31 00:35:46 +0200
commit9abff80ab81ffa32225b351a4623b82e7e47e96a (patch)
treec511b7ad6cb82554196b0104b25138122cc171a4
parent7d0eaa855959c03b52795a7457001bbd69d88464 (diff)
parent9324987c1fc465379060491d9a4b1c25cffde0fc (diff)
Merge pull request #838 from m90/patch-1
[javascript/en] use proper notation for decimals
-rw-r--r--javascript.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index 792cab98..a92dcb4a 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -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