Sistem bilangan
---------------
1. Binary / Binar / Berbasis 2
Simbol yang digunakan = 0 , 1
2. Octal / Oktal / berbasis 8
Simbol yang digunakan = 0 - 7
3. Decimal / Desimal / berbasis 10
Saimbol yang digunakan = 0 - 9
4. Hexadesimal / heksadesimal / berbasis 16
Simbol yang digunakan 0 - 9 dan A - F
Konversi sistem bilangan
------------------------
Dari bilangan desimal ke bilangan biner
1000 = ..... ? (biner)
1000 / 2 = 500 sisa 0
500 / 2 = 250 sisa 0
250 / 2 = 125 sisa 0
125 / 2 = 62 sisa 1
62 / 2 = 31 sisa 0
31 / 2 = 15 sisa 1
15 / 2 = 7 sisa 1
7 / 2 = 3 sisa 1
3 / 2 = 1 sisa 1
1 / 2 = 0 sisa 1 Hasilnya 1111101000
Ex ; - Dari desimal ke oktal
1000 = ... ? ( oktal )
Jwb :.... ?
-1000 / 8 = 125 sisa 0
- 125 / 8 = 15 sisa 5
- 15 / 8 = 1 sisa 7
- 1 / 8 = 0 sisa 1 hasilnya 1750
- Dari desimal ke heksadesimal
1000 = ... ? ( heksadesimal )
Jwb : ..... ?
-1000 / 16 = 62 sisa 8
- 62 / 16 = 3 sisa E
- 3 / 16 = 0 sisa 3 hasilnya 3E8
Contoh :
-------
-Dari oktal kedesimal=> 1750 (oktal) = .... (desimal) ?
3 2 1 0
(1 x 8 ) + (7 x 8 ) + (5 x 8 ) + (0 x 8 ) =
(1 x 512) + (7 x 64) + (5 x 8) + (0 x 1) =
512 + 448 + 40 + 0 = 1000 (desimal)
BIT = Binary Digit
= Satuan dasar informasi
- Penyimpanan data
- Komunikasi / transfer data 0 dan 1
Sistem komputer 1 Bit = 0 = 0,1 = 2 kemungkinan
2 Bit = 00
4 Bit = 0000
8 Bit = 00000000
16 Bit = 0000000000000000
00 = 00 , 01 , 10 , 11
000 = 000 , 001 , 010 , 011 , 100 , 101 , 110 , 111
1 byte = 8 bit
1 word = 2 byte = 16 bit
1 Dword = 2 word = 4 byte = 32 bit
1 qword = 2 dword = 4 word = 8 byte = 64 bit
0101000011010010000100010100101000 ...
146 x 8 bit = 1167
kilo = 1k
10
mega = 1 m =2 = 1024 k = 1024 x 1024 = 1048576
30
giga = 1G = 2 = 1km = 1 KKK
40
TERA = 1t = 20
---------------
1. Binary / Binar / Berbasis 2
Simbol yang digunakan = 0 , 1
2. Octal / Oktal / berbasis 8
Simbol yang digunakan = 0 - 7
3. Decimal / Desimal / berbasis 10
Saimbol yang digunakan = 0 - 9
4. Hexadesimal / heksadesimal / berbasis 16
Simbol yang digunakan 0 - 9 dan A - F
Konversi sistem bilangan
------------------------
Dari bilangan desimal ke bilangan biner
1000 = ..... ? (biner)
1000 / 2 = 500 sisa 0
500 / 2 = 250 sisa 0
250 / 2 = 125 sisa 0
125 / 2 = 62 sisa 1
62 / 2 = 31 sisa 0
31 / 2 = 15 sisa 1
15 / 2 = 7 sisa 1
7 / 2 = 3 sisa 1
3 / 2 = 1 sisa 1
1 / 2 = 0 sisa 1 Hasilnya 1111101000
Ex ; - Dari desimal ke oktal
1000 = ... ? ( oktal )
Jwb :.... ?
-1000 / 8 = 125 sisa 0
- 125 / 8 = 15 sisa 5
- 15 / 8 = 1 sisa 7
- 1 / 8 = 0 sisa 1 hasilnya 1750
- Dari desimal ke heksadesimal
1000 = ... ? ( heksadesimal )
Jwb : ..... ?
-1000 / 16 = 62 sisa 8
- 62 / 16 = 3 sisa E
- 3 / 16 = 0 sisa 3 hasilnya 3E8
Contoh :
-------
-Dari oktal kedesimal=> 1750 (oktal) = .... (desimal) ?
3 2 1 0
(1 x 8 ) + (7 x 8 ) + (5 x 8 ) + (0 x 8 ) =
(1 x 512) + (7 x 64) + (5 x 8) + (0 x 1) =
512 + 448 + 40 + 0 = 1000 (desimal)
BIT = Binary Digit
= Satuan dasar informasi
- Penyimpanan data
- Komunikasi / transfer data 0 dan 1
Sistem komputer 1 Bit = 0 = 0,1 = 2 kemungkinan
2 Bit = 00
4 Bit = 0000
8 Bit = 00000000
16 Bit = 0000000000000000
00 = 00 , 01 , 10 , 11
000 = 000 , 001 , 010 , 011 , 100 , 101 , 110 , 111
1 byte = 8 bit
1 word = 2 byte = 16 bit
1 Dword = 2 word = 4 byte = 32 bit
1 qword = 2 dword = 4 word = 8 byte = 64 bit
0101000011010010000100010100101000 ...
146 x 8 bit = 1167
kilo = 1k
10
mega = 1 m =2 = 1024 k = 1024 x 1024 = 1048576
30
giga = 1G = 2 = 1km = 1 KKK
40
TERA = 1t = 20