mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
use propernotation for decimals
This commit is contained in:
parent
7d0eaa8559
commit
9324987c1f
@ -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