Desimal ke Basis Bilangan 2 (DEC ke BIN)
Contoh: Tentukan DEC3312 dalam Biner.
3232= (...)2
Solusi:
3312 / 2 = 1656 sisa 0 Least Significant Bit (LSB)
1656 / 2 = 828 sisa 0
828 / 2 = 414 sisa 0
414 / 2 = 207 sisa 0
207 / 2 = 103 sisa 1
Contoh: Tentukan DEC3312 dalam Biner.
3232= (...)2
Solusi:
3312 / 2 = 1656 sisa 0 Least Significant Bit (LSB)
1656 / 2 = 828 sisa 0
828 / 2 = 414 sisa 0
414 / 2 = 207 sisa 0
207 / 2 = 103 sisa 1
103 / 2 = 51 sisa 1
51 / 2 = 25 sisa 1
51 / 2 = 25 sisa 1
25 / 2 = 12 sisa 1
12 / 2 = 6 sisa 0
6 / 2 = 4 sisa 0
4 / 2 = 2 sisa 0
2 / 2 = 1 sisa 0
1 / 2 = 0 sisa 1 Most Significant Bit (MSB)
Dituliskan: 1000011110000
12 / 2 = 6 sisa 0
6 / 2 = 4 sisa 0
4 / 2 = 2 sisa 0
2 / 2 = 1 sisa 0
1 / 2 = 0 sisa 1 Most Significant Bit (MSB)
Dituliskan: 1000011110000
Tidak ada komentar:
Posting Komentar