In the chapter "How Numbers Work" of the book "How JavaScript Works" by Douglas Crockford it is mentioned that a number in JavaScript is made up of 1 signed bit, 11 exponent bits, and 53 significant bits. This totals to 65 bits and some clever encoding allow these 65 bits to be stored in 64 bits, which we understand as a 64-bit floating-point number.
Going further the significant digits are stored as a binary fraction in the range 0.5 <= significand < 1.0
In that form, the most significant bit is always a 1. Since that bit is always a 1, it does not need to be stored in the number. This yields a bonus bit.
I do not understand
- How the most significant bit (the sign bit) is going to be always 1?
- And if the sign bit is not stored how does it differentiate between positive and negative numbers?
Please help me in understanding this concept or guide me in the direction that can help me.