Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Number | Q1031 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.