Decimal to float32 bits (hex)
Type a value in dec to get it in float32 hex instantly.
3F800000float32 hex
1 is stored exactly in a 32-bit float.
Convert the other way: float32 hex to dec
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 dec to float32 hex
value = (−1)^sign × 1.fraction × 2^(exponent − bias), bias 127 for float32 and 1023 for float64. 1.0 = 0x3F800000.
Example: 1 dec = 3F800000 float32 hex.
Every unit
That number in every format
Tables
dec to float32 hex conversion table
| dec | float32 hex |
|---|---|
| -2 dec | C0000000 float32 hex |
| -1 dec | BF800000 float32 hex |
| 0.1 dec | 3DCCCCCD float32 hex |
| 0.2 dec | 3E4CCCCD float32 hex |
| 0.25 dec | 3E800000 float32 hex |
| 0.5 dec | 3F000000 float32 hex |
| 1 dec | 3F800000 float32 hex |
| 1.5 dec | 3FC00000 float32 hex |
| 2 dec | 40000000 float32 hex |
| 3.14159 dec | 40490FD0 float32 hex |
| 10 dec | 41200000 float32 hex |
| 100 dec | 42C80000 float32 hex |
| 1000 dec | 447A0000 float32 hex |
| 16777216 dec | 4B800000 float32 hex |
float32 hex to dec conversion table
| float32 hex | dec |
|---|---|
| C0000000 float32 hex | -2 dec |
| BF800000 float32 hex | -1 dec |
| 3DCCCCCD float32 hex | 0.1 dec |
| 3E4CCCCD float32 hex | 0.2 dec |
| 3E800000 float32 hex | 0.25 dec |
| 3F000000 float32 hex | 0.5 dec |
| 3F800000 float32 hex | 1 dec |
| 3FC00000 float32 hex | 1.5 dec |
| 40000000 float32 hex | 2 dec |
| 40490FD0 float32 hex | 3.14159 dec |
| 41200000 float32 hex | 10 dec |
| 42C80000 float32 hex | 100 dec |
| 447A0000 float32 hex | 1000 dec |
| 4B800000 float32 hex | 16777216 dec |
Quick answers
Quick answers
- How many float32 hex is 1 dec?
- 1 dec is 3F800000 float32 hex.
- How many float32 hex is 10 dec?
- 10 dec is 41200000 float32 hex.
The units
About these units
Decimal (dec)
The number in decimal, as many digits as a double needs.
Float32 bits (hex) (float32 hex)
The 32 bits of a single-precision float, in hex.
Keep going