Float32 bits (binary) to decimal
Type a value in float32 bin to get it in dec instantly.
1dec
1 is stored exactly in a 32-bit float.
Convert the other way: dec to float32 bin
What it means
Where does it sit in the float range?
Uses round-to-nearest, as every processor does by default. The binary form shows sign, exponent and fraction separated by spaces.
The math
How to convert float32 bin to dec
value = (−1)^sign × 1.fraction × 2^(exponent − bias), bias 127 for float32 and 1023 for float64. 1.0 = 0x3F800000.
Example: 0 01111111 00000000000000000000000 float32 bin = 1 dec.
Every unit
That number in every format
Tables
float32 bin to dec conversion table
| float32 bin | dec |
|---|---|
| 1 10000000 00000000000000000000000 float32 bin | -2 dec |
| 1 01111111 00000000000000000000000 float32 bin | -1 dec |
| 0 01111011 10011001100110011001101 float32 bin | 0.1 dec |
| 0 01111100 10011001100110011001101 float32 bin | 0.2 dec |
| 0 01111101 00000000000000000000000 float32 bin | 0.25 dec |
| 0 01111110 00000000000000000000000 float32 bin | 0.5 dec |
| 0 01111111 00000000000000000000000 float32 bin | 1 dec |
| 0 01111111 10000000000000000000000 float32 bin | 1.5 dec |
| 0 10000000 00000000000000000000000 float32 bin | 2 dec |
| 0 10000000 10010010000111111010000 float32 bin | 3.14159 dec |
| 0 10000010 01000000000000000000000 float32 bin | 10 dec |
| 0 10000101 10010000000000000000000 float32 bin | 100 dec |
| 0 10001000 11110100000000000000000 float32 bin | 1000 dec |
| 0 10010111 00000000000000000000000 float32 bin | 16777216 dec |
dec to float32 bin conversion table
| dec | float32 bin |
|---|---|
| -2 dec | 1 10000000 00000000000000000000000 float32 bin |
| -1 dec | 1 01111111 00000000000000000000000 float32 bin |
| 0.1 dec | 0 01111011 10011001100110011001101 float32 bin |
| 0.2 dec | 0 01111100 10011001100110011001101 float32 bin |
| 0.25 dec | 0 01111101 00000000000000000000000 float32 bin |
| 0.5 dec | 0 01111110 00000000000000000000000 float32 bin |
| 1 dec | 0 01111111 00000000000000000000000 float32 bin |
| 1.5 dec | 0 01111111 10000000000000000000000 float32 bin |
| 2 dec | 0 10000000 00000000000000000000000 float32 bin |
| 3.14159 dec | 0 10000000 10010010000111111010000 float32 bin |
| 10 dec | 0 10000010 01000000000000000000000 float32 bin |
| 100 dec | 0 10000101 10010000000000000000000 float32 bin |
| 1000 dec | 0 10001000 11110100000000000000000 float32 bin |
| 16777216 dec | 0 10010111 00000000000000000000000 float32 bin |
Quick answers
Quick answers
- How many dec is 0 01111111 00000000000000000000000 float32 bin?
- 0 01111111 00000000000000000000000 float32 bin is 1 dec.
- How many dec is 0 10000010 01000000000000000000000 float32 bin?
- 0 10000010 01000000000000000000000 float32 bin is 10 dec.
The units
About these units
Float32 bits (binary) (float32 bin)
Sign, 8 exponent bits and 23 fraction bits.
Decimal (dec)
The number in decimal, as many digits as a double needs.
Keep going