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!