LearnFrenzy
Sign in Take a free test

Data Types · JavaScript Data Types MCQ · Question 5

Number.MAX_SAFE_INTEGER Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 5 Back to Exercise

What is Number.MAX_SAFE_INTEGER?

  • A 2^31 − 1
  • B 2^53 − 1 Correct
  • C 2^63 − 1
  • D 2^64
Correct Answer: Option B

A double has a 53-bit significand, so integers are exact up to 9007199254740991 (2^53 − 1). 2^31 − 1 is the limit of 32-bit ints in languages like Java.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links