Decimal to float32 value
Type a value in dec to get it in float32 instantly.
1float32
1 is stored exactly in a 32-bit float.
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
value = (−1)^sign × 1.fraction × 2^(exponent − bias), bias 127 for float32 and 1023 for float64. 1.0 = 0x3F800000.
Example: 1 dec = 1 float32.
Every unit
That number in every format
Tables
dec to float32 conversion table
| dec | float32 |
|---|---|
| -2 dec | -2 float32 |
| -1 dec | -1 float32 |
| 0.1 dec | 0.100000001 float32 |
| 0.2 dec | 0.200000003 float32 |
| 0.25 dec | 0.25 float32 |
| 0.5 dec | 0.5 float32 |
| 1 dec | 1 float32 |
| 1.5 dec | 1.5 float32 |
| 2 dec | 2 float32 |
| 3.14159 dec | 3.14159012 float32 |
| 10 dec | 10 float32 |
| 100 dec | 100 float32 |
| 1000 dec | 1000 float32 |
| 16777216 dec | 16777216 float32 |
float32 to dec conversion table
| float32 | dec |
|---|---|
| -2 float32 | -2 dec |
| -1 float32 | -1 dec |
| 0.1 float32 | 0.10000000149011612 dec |
| 0.2 float32 | 0.20000000298023224 dec |
| 0.25 float32 | 0.25 dec |
| 0.5 float32 | 0.5 dec |
| 1 float32 | 1 dec |
| 1.5 float32 | 1.5 dec |
| 2 float32 | 2 dec |
| 3.14159 float32 | 3.141590118408203 dec |
| 10 float32 | 10 dec |
| 100 float32 | 100 dec |
| 1000 float32 | 1000 dec |
| 16777216 float32 | 16777216 dec |
Quick answers
Quick answers
- How many float32 is 1 dec?
- 1 dec is 1 float32.
- How many float32 is 10 dec?
- 10 dec is 10 float32.
The units
About these units
Decimal (dec)
The number in decimal, as many digits as a double needs.
Float32 value (float32)
The number a single-precision float actually stores.
Keep going