Decimal to Binary, Octal, Hexadecimal, and Other Base n numbers
Decimal to Binary, Octal, Hexadecimal, and Other Base n numbers
1.1 Decimal to Binary
(45)ββ to ( )β
1st Method LCM
45/2 Quotient = 22 , Remainder = 1
22/2 Quotient = 11, Remainder = 0
11/2 Quotient = 5 , Remainder = 1
5/2 Quotient = 2, Remainder = 1
2/2 Quotient = 1, Remainder = 0
Take From Last Quotient to Upper Last Remainder
1 0 1 1 0 1
(45)ββ = (101101)β
1.2 Decimal to Octal
(45)ββ to ( )β
2 Methods
- Decimal to Octal
- Decimal to Binary β Binary to Octal
Decimal to Octal
(45)ββ to ( )β
1st Method LCM
45/8 Quotient = 5, Remainder = 5
5/8 Quotient = 5 , Remainder = 0
5 5
(45)ββ to (55 )β
2nd Method
Decimal to Binary β Binary to Octal
(46)ββ to ( )β
46/2 Quotient = 23 , Remainder = 0
23/2 Quotient = 11, Remainder = 1
11/2 Quotient = 5 , Remainder = 1
5/2 Quotient = 2, Remainder = 1
2/2 Quotient = 1, Remainder = 0
1 0 1 1 1 0
(46)ββ = (101110)β
Binary to Octal
1 0 1 1 1 0
Divide the Number in 2 Parts
101 and 110
1 0 1
Β²Β²x1+Β²ΒΉx0+Β²β°x1
4x1+ 2x0 + 1x1
4+1 = 5 (1st Digit) β β β β β β 1
110
Β²Β²x1 + Β²ΒΉx1 + Β²β°x0
4x1 + 2x1+1x0
4+2 = 6 (2nd Digit) β β β β β β 2
= 56
(101110)β = (56)β
1.3 Decimal to Hexadecimal
(47)ββ to ( )ββ
2 Methods
- Decimal to Hexadecimal
- Decimal to Binary β Binary to Hexadecimal
1st Method LCM
(47)ββ to ( )ββ
47/16 Quotient = 32, Remainder = 15
32/16 Quotient = 2, Remainder = 0
Where in Hexadecimal F = 15
So There is 2 and F
(47)ββ to (2F )ββ
2nd Method Decimal to Binary β Binary to Hexadecimal
(47)ββ to ( )β
47/2 Quotient = 23 , Remainder = 1
23/2 Quotient = 11, Remainder = 1
11/2 Quotient = 5 , Remainder = 1
5/2 Quotient = 2, Remainder = 1
2/2 Quotient = 1, Remainder = 0
1 0 1 1 1 1
(47)ββ to (101111 )β
Binary to Hexadecimal
1 0 1 1 1 1
Where 1 0 in binary is 2
and 1111 is F
(101111 )β = (2F )ββ
1.4 Decimal to N Base Number
(47)ββ to ( )β
1st Method LCM
47/6 Quotient = 7, Remainder = 5
7/6 Quotient = 1 , Remainder = 1
(47)ββ= (115)β