Canjin Decimal zuwa Binary

Yadda ake canza adadi zuwa binary

Matakan juyawa:

  1. Raba lambar da 2.
  2. Sami adadin maƙasudin ƙididdiga na gaba.
  3. Samu ragowar don lambar binary.
  4. Maimaita matakan har sai adadin ya yi daidai da 0.

Misali #1

Maida 41 10  zuwa binary:

Rabo ta 2 Quotient Rago Bit #
41/2 20 1 0
20/2 10 0 1
10/2 5 0 2
5/2 2 1 3
2/2 1 0 4
1/2 0 1 5

So 41 10 = 101001 2

Teburin jujjuyawa na Decimal zuwa binary

Lambar Decimal Lambar Binary Lambar Hex
0 0 0
1 1 1
2 10 2
3 11 3
4 100 4
5 101 5
6 110 6
7 111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
16 10000 10
17 10001 11
18 10010 12
19 10011 13
20 10100 14
21 10101 15
22 10110 16
23 10111 17
24 11000 18
25 11001 19
26 11010 1 A
27 11011 1B
28 11100 1C
29 11101 1D
30 11110 1E
31 11111 1F
32 100000 20
64 1000000 40
128 10000000 80
256 100000000 100

Tsarin Decimal

Tsarin adadi na goma shine mafi yawan amfani da tsarin daidaitaccen tsarin rayuwar yau da kullun. Yana amfani da lamba 10 azaman tushe (radix). Saboda haka, yana da alamomi 10: Lambobi daga 0 zuwa 9; wato 0, 1, 2, 3, 4, 5, 6, 7, 8 da 9.

Tsarin binary

Tsarin lamba na binary yana amfani da lamba 2 azaman tushe (radix). A matsayin tsarin lamba-2, ya ƙunshi lambobi biyu kawai: 0 da 1.