Décimal en bits float32 (binaire)
Tapez une valeur en déc pour l’obtenir aussitôt en float32 bin.
0 01111111 00000000000000000000000float32 bin
1 est stocké exactement dans un flottant 32 bits.
Convertir dans l’autre sens : float32 bin en déc
Ce que ça représente
Où se situe-t-il dans la plage des flottants ?
Arrondi au plus proche, comme le font par défaut tous les processeurs. La forme binaire montre le signe, l’exposant et la mantisse séparés par des espaces.
Le calcul
Comment convertir déc en float32 bin
valeur = (−1)^signe × 1,mantisse × 2^(exposant − biais), biais de 127 pour le float32 et de 1023 pour le float64. 1,0 = 0x3F800000.
Exemple : 1 déc = 0 01111111 00000000000000000000000 float32 bin.
Toutes les unités
Ce nombre dans tous les formats
Tables
Table de conversion déc en float32 bin
| déc | float32 bin |
|---|---|
| -2 déc | 1 10000000 00000000000000000000000 float32 bin |
| -1 déc | 1 01111111 00000000000000000000000 float32 bin |
| 0.1 déc | 0 01111011 10011001100110011001101 float32 bin |
| 0.2 déc | 0 01111100 10011001100110011001101 float32 bin |
| 0.25 déc | 0 01111101 00000000000000000000000 float32 bin |
| 0.5 déc | 0 01111110 00000000000000000000000 float32 bin |
| 1 déc | 0 01111111 00000000000000000000000 float32 bin |
| 1.5 déc | 0 01111111 10000000000000000000000 float32 bin |
| 2 déc | 0 10000000 00000000000000000000000 float32 bin |
| 3.14159 déc | 0 10000000 10010010000111111010000 float32 bin |
| 10 déc | 0 10000010 01000000000000000000000 float32 bin |
| 100 déc | 0 10000101 10010000000000000000000 float32 bin |
| 1000 déc | 0 10001000 11110100000000000000000 float32 bin |
| 16777216 déc | 0 10010111 00000000000000000000000 float32 bin |
Table de conversion float32 bin en déc
| float32 bin | déc |
|---|---|
| 1 10000000 00000000000000000000000 float32 bin | -2 déc |
| 1 01111111 00000000000000000000000 float32 bin | -1 déc |
| 0 01111011 10011001100110011001101 float32 bin | 0.1 déc |
| 0 01111100 10011001100110011001101 float32 bin | 0.2 déc |
| 0 01111101 00000000000000000000000 float32 bin | 0.25 déc |
| 0 01111110 00000000000000000000000 float32 bin | 0.5 déc |
| 0 01111111 00000000000000000000000 float32 bin | 1 déc |
| 0 01111111 10000000000000000000000 float32 bin | 1.5 déc |
| 0 10000000 00000000000000000000000 float32 bin | 2 déc |
| 0 10000000 10010010000111111010000 float32 bin | 3.14159 déc |
| 0 10000010 01000000000000000000000 float32 bin | 10 déc |
| 0 10000101 10010000000000000000000 float32 bin | 100 déc |
| 0 10001000 11110100000000000000000 float32 bin | 1000 déc |
| 0 10010111 00000000000000000000000 float32 bin | 16777216 déc |
Réponses rapides
Réponses rapides
- Combien de float32 bin font 1 déc ?
- 1 déc font 0 01111111 00000000000000000000000 float32 bin.
- Combien de float32 bin font 10 déc ?
- 10 déc font 0 10000010 01000000000000000000000 float32 bin.
Les unités
À propos de ces unités
Décimal (déc)
Le nombre en décimal, avec autant de chiffres qu’il en faut à un double.
Bits float32 (binaire) (float32 bin)
Signe, 8 bits d’exposant et 23 bits de mantisse.
Pour aller plus loin