Skip to content

Commit

Permalink
[javascript] Added note about ints
Browse files Browse the repository at this point in the history
  • Loading branch information
daisylb committed Oct 10, 2013
1 parent 9c0e7c5 commit c149c61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ doStuff()
// 1. Numbers, Strings and Operators

// Javascript has one number type (which is a 64-bit IEEE 754 double).
// As with Lua, don't freak out about the lack of ints: doubles have a 52-bit
// mantissa, which is enough to store integers up to about 9✕10¹⁵ precisely.
3; // = 3
1.5; // = 1.5

Expand Down

0 comments on commit c149c61

Please sign in to comment.