diff options
author | Adam Brenecki <adam@brenecki.id.au> | 2013-10-10 10:52:56 +1030 |
---|---|---|
committer | Adam Brenecki <adam@brenecki.id.au> | 2013-10-10 10:52:56 +1030 |
commit | c149c619da0f258c55bfb355e9d9e3b02dc880c2 (patch) | |
tree | c395d0ee40f7025e6cbba5a9345d49cdb3358e77 | |
parent | 9c0e7c548d3fb0cf655f282e36b1c24b21bba83b (diff) |
[javascript] Added note about ints
-rw-r--r-- | javascript.html.markdown | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index 97c5b712..2ac98105 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -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 |