Skip to content

Instantly share code, notes, and snippets.

@newswim
Created January 13, 2016 20:59
Show Gist options
  • Save newswim/6266d2d3d666b120dc7a to your computer and use it in GitHub Desktop.
Save newswim/6266d2d3d666b120dc7a to your computer and use it in GitHub Desktop.
JAVASCRIPT!
0.1 + 0.2
// 0.30000000000000004
1 + 2
// 3
0.1 + 0.2 + 0.3
// 0.6000000000000001
0.1 + 0.2 + 0.3 + 0.4
// 1
0.1 + 0.2 + 0.3 + 0.4 + 0.5
// 1.5
0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 0.6
// 2.1
0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 0.6 + 0.7
// 2.8
0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 0.6 + 0.7 + 0.8
// 3.5999999999999996
0.1 + 0.2 + 0.3 + 0.4 + 0.5 + 0.6 + 0.7 + 0.8 + 0.9
// 4.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment