Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1031 What is the range of Integer data types in JavaScript?

You are here: irt.org | FAQ | JavaScript | Number | Q1031 [ previous next ]

In JavaScript all numbers are floating-point numbers.

JavaScript uses the standard 8 byte IEEE floating-point numeric format, which means the range is from:

+/- 1.7976931348623157x10^308 - very large, and +/- 5x10^-324 - very small.

As JavaScript uses floating-point numbers the accuracy is only assured for integers between: -9007199254740992 (-2^53) and 9007199254740992 (2^53)

All the above from "JavaScript The Definitive Guide" - O'Reilly.

For more accurate information then refer to the ECMAScript language specification at http://www.ecma.ch/stand/ecma-262.htm

Feedback on 'Q1031 What is the range of Integer data types in JavaScript?'

©2018 Martin Webb