JavaScript has a single number type. Internally, it is represented as 64-bit floating point, the same as Java’s double. Unlike most other programming languages, there is no separate integer type, so 1 and 1.0 are the same value. This is a significant convenience because problems of overflow in short integers are completely avoided, and all you need to know about a number is that it is a number. A large class of numeric type errors is avoided. [emphasis mine]It made me want to shit on that page, slam the cover down hard, and then mail it back to Douglas Crockford. Seriously.
« Older Is it possible for a genre of fiction to re-dress ... | A few years ago Charles Guan w... Newer »
This thread has been archived and is closed to new comments
posted by Mayor Curley at 7:19 AM on March 22