0.4 × 2
0.8
0.8
0
= a
−
4
1
= a
0.8 × 2
1.6
0.6
−
5
As you can see the process will never end. In this case, the number can only be
approximated in binary format, that is,
(
. 0
) 3
≈
(
a
a
a
a
a
)
=
(
. 0
01001
)
10
−
1
−
2
−
3
−
4
−
5
2
2
Q: But what is the mathematics behinds this process of converting a decimal number to
binary format?
A: Let z be the decimal number written as
z
=
x
.
y
where
x is the integer part and y is the fractional part.
We want to find the binary equivalent of x . So we can write
Source URL:
Saylor URL:
Attributed to: University of South Florida: Holistic Numerical Methods Institute
Page 7 of 12