Binary Step-by-Step Calculator
Decimal with fraction to Binary
2 | 3 | ...1 | |
1 | ...1 |
0.125 | x 2 = | 0.25 | ...0 | |
0.25 | x 2 = | 0.5 | ...0 | |
0.5 | x 2 = | 1 | ...1 |
Decimal with fraction to Hexadecimal
Short Division for Integer Part: | |||
16 | 30 | ...E | |
1 | ...1 |
Multiple by 16 for Fraction Part: | ||||
0.007813 | Γ 16 = | 0.125 | ...0 | |
0.125 | Γ 16 = | 2 | ...2 |
Hexadecimal with fraction to Decimal
= 240 + 0.0390625
= 240.0390625
F Γ 161 | + A Γ 16-2 | |
= | 15 Γ 16 | + 10 Γ 16-2 |
= 240.0390625
Decimal to IEEE 754
Decimal value for IEEE 754 = (-1)SΓ(1+.M)Γ2E-bias
S = 1 (since it is a negative number)
Exponent = log(24.125)βlog(2)β4
(E = exponent + bias = 4 + 127 = 131)
E = 1000 00112
1+.M = 24.125β24β1.5078125
.M β 0.5078125
Decimal value for IEEE 754 = (-1)SΓ(1+.M)Γ2E-bias
S = 1 (since it is a negative number)
Exponent = log(24.125)βlog(2)β4
(E = exponent + bias = 4 + 127 = 131)
E = 1000 00112
1+.M = 24.125β24β1.5078125
.M β 0.5078125