Normalize a decimal or binary number into scientific notation and binary floating-point form, or solve F = N × 2(E − B) with IEEE bias presets.
Related Calculators
- Exponent Calculator
- Log Base 2 Calculator
- BCD Binary Coded Decimal Calculator
- Base 8 Calculator
- 10th Power Calculator
- Overflow Error Calculator
- All Math and Numbers Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Normalize decimal | Rewrites a decimal number with one nonzero digit before the point and a power of 10 | Requires the number, which can use e notation |
| Normalize binary | Rewrites a binary number with a leading 1 before the point and a power of 2 | Requires the number in binary digits, with an optional binary point |
| Value (F) | Finds the value a significand and biased exponent stand for | Requires the significand, the biased exponent and the bias |
| Significand (N) | Finds the significand of a value for a given exponent field | Requires the signed value, the biased exponent and the bias |
| Biased exponent (E) | Finds the exponent field that links a value to its significand | Requires the significand, the signed value and the bias |
| Bias (B) | Finds the bias that links a value, its significand and an exponent field | Requires the significand, the signed value and the biased exponent |
The functions that use a bias offer a preset that fills it in: 127 for IEEE single, 15 for IEEE half, 1023 for IEEE double, 16383 for IEEE quadruple and 127 for bfloat16. A custom bias can be typed instead. With a preset chosen, the result says whether the numbers fall in that format’s normal range.
Floating Point Normalization Formulas
| F | Signed value |
| N | Significand, also called the mantissa. In a normal binary number 1 ≤ |N| < 2 |
| E | Biased exponent, the number stored in the exponent field |
| B | Bias of the format. E − B is the true exponent |
Normalize decimal
The decimal point moves until one nonzero digit is left in front of it, and the exponent counts the places moved. 0.00625 becomes 6.25 × 10^-3. The result also gives the binary form, 1.6 × 2^-8, and the IEEE single exponent field for it, −8 + 127 = 119. The entered digits are kept exactly and nothing is rounded.
Normalize binary
The binary point moves until a single 1 is left in front of it. 1000.1 becomes 1.0001 × 2^3. That significand is 1.0625 in decimal, the value is 8.5, and the IEEE single exponent field is 3 + 127 = 130. A 0b prefix is accepted.
Value (F)
The formula above applies directly. A significand of 1.0625 with an exponent field of 130 and a bias of 127 is 1.0625 × 2^3 = 8.5. In IEEE double, 1.5 with an exponent field of 1021 is 1.5 × 2^(1021 − 1023) = 0.375.
Significand (N)
A value of 8.5 with an exponent field of 130 and a bias of 127 has a significand of 8.5 × 2^-3 = 1.0625.
Biased exponent (E)
A value of 8.5 with a significand of 1.0625 has a true exponent of log₂(8) = 3, so with a bias of 127 the exponent field is 130. F and N must be nonzero and have the same sign.
Bias (B)
A value of 8.5, a significand of 1.0625 and an exponent field of 130 give a bias of 130 − 3 = 127.
Normal range of each format
A normal number in IEEE single has an exponent field from 1 to 254 and the value 1.f × 2^(e − 127). IEEE double uses fields 1 to 2046 with 2^(e − 1023), and the 128-bit quadruple format uses fields 1 to 32766 with 2^(e − 16383) [1]. A field of 0 marks zero or a subnormal number and a field of all ones marks infinity or NaN, and those follow different rules [1]. IEEE half holds normal values from 2^-14 to 65504 with 11 bits of precision [2], which fits a bias of 15. bfloat16 has the same range as single precision [3], which fits the same bias of 127.
Limits of This Estimate
- Nothing is rounded to a format’s precision and no bit pattern is produced. A result marked as in the normal range can still need more significand bits than the format has.
- N and F carry the sign here. An IEEE encoding stores the sign in a separate bit.
- Zero, subnormal numbers, infinity and NaN do not follow the main formula [1].
- The half and bfloat16 presets rest on each format’s published range, not on a table that states the bias. These estimates are based on the best available data and estimations.
Sources
- Oracle (Sun Microsystems), Numerical Computation Guide, Chapter 2: IEEE Arithmetic: value formulas, exponent ranges and special values for the single, double and quadruple formats
- GNU Compiler Collection, Using GCC: Half-Precision Floating Point: range and precision of the IEEE half format
- Google Cloud, Improve your model’s performance with bfloat16: bfloat16 having the same range as single precision

