Konversi Bilangan
Penjumlahan, Pengurangan dan Perkalian Biner
PENJUMLAHAN
Misal :
A = 1
B = 1
Maka : A+B = 1+1 = 10
1+1 = 0 ---> cary/lebih 1
1+0 = 1
0+1 = 1
0+0 = 0
Contoh :
1 1 0 0
1 0 1 1
---------- +
1 0 1 1 1
PENGURANGAN
Misal :
A = 1
B = 1
Maka : A-B = 1-1 = 0
1-1 = 0
1-0 = 1
0-1 = 1 ---> borrow/pinjam 1
0-0 = 0
Contoh :
1 1 0 1 1
1 0 1 0 0
--------------- -
0 0 1 1 1
PERKALIAN
Misal :
A = 1
B = 1
Maka : A-B = 1x1 = 1
1x1 = 1
1x0 = 0
0x1 = 0
0x0 = 0
Contoh :
1 1 0
0 1 1
---------x
1 1 0
1 1 0
0 0 0
-----------------+
1 0 0 1 0
Post a Comment
0 Comments