Example
Transform 29 (decimal) into binary number - reading upwards, result is 111012
29 : 2 = 14 , remaining 1 20 last (smallest) digit
14 : 2 = 7 , remaining 0 21
7 : 2 = 3 , remaining 1 22
3 : 2 = 1 , remaining 1 23
1 : 2 = 0 , remaining 1 24 first digit
- end of procedure
Example
Transform 0,8125 (decimal) into binary number – reading downwards, result is 0,11012
0,8125 * 2 = 1, 625 2-1 first digit after zero
0,625 * 2 = 1, 25 2-2
0,25 * 2 = 0, 5 2-3
0,5 * 2 = 1, 0 2-4 last digit
0,0 end of procedure
Example
Transform 0,3 (decimal) into binary number – result is 0,01001 1001 1001… 2 shortly rounded = 0,010012
0,3 * 2 = 0, 6 2-1 first digit after zero
0,6 * 2 = 1, 2 2-2
--------
0,2 * 2 = 0, 4 2-3
0,4 * 2 = 0, 8 2-4
0,8 * 2 = 1, 6 2-5
0,6 * 2 = 1, 2 2-6
--------
…
…
procedure never ends
Example – Quick Method
Transform 53(decimal) into binary number using quick method
53 25 + 24 + 22 + 20 =
- 32 -> 25 1*25 + 1*24 + 0*23 + 1*22 + 0*21 + 1*20 =
-------- 110101 2
21
- 16 -> 24
--------
5
- 4 -> 22
--------
1
- 1 -> 20
--------
0 -> end of procedure
Technorati Tags: Numeric, Numerical, Transform, Transformation, Binary, Decimal, Octal, Hexadecimal, Hex, Base, Complement, Method
There is a quicker method.