diff options
author | Frederik Ring <frederik.ring@gmail.com> | 2014-10-30 16:43:49 +0100 |
---|---|---|
committer | Frederik Ring <frederik.ring@gmail.com> | 2014-10-30 16:43:49 +0100 |
commit | 9324987c1fc465379060491d9a4b1c25cffde0fc (patch) | |
tree | c511b7ad6cb82554196b0104b25138122cc171a4 /javascript.html.markdown | |
parent | 7d0eaa855959c03b52795a7457001bbd69d88464 (diff) |
use propernotation for decimals
Diffstat (limited to 'javascript.html.markdown')
-rw-r--r-- | javascript.html.markdown | 2 |
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 |