Binary →
Example
-
#
& convent steps to
0 1 01
binary to integer
8 4 21
write
↑ >
-
The Binary
.
E22 mutply from left with
I
a
&
1x1
(8 x0X(4x1)+ 12x0)+ 20 , 1 , 2, n)
2 ↑
All :
results
>
- Add ye
Example
-
2
100 11
2423222128
16842 I
(16 x1) + 18 x0) + (4x0) + (2x1)+ (x1)
+ 0 + 2+ 1
16 + 0
what are
binary numbers ?
two
system only
O
*
Binary numbers an a
of numbers
using
digels crucial
2)
computing
·
-
OG 1 (base in
They are
.
② digital electronics because computers and electronic device
operate using 2 States >
-
on (11 and off (0)·
keyeants
computers data
* used in
for storages
circuls
-
* used in
Digital
#Data Transmission leg internet
: ,
networking)
Essential detection
*
for Programming , algos a error
to convent Int to
steps Binary
Divide number
>
by 2
-
>
-
Record
The remainder
If The result of division is not whole ,
theremainderwil be did a
>
-
updateThe Quotient
The
Quotient becomes
number ,
your new
repeat the process
until Quotient is
zero .
all
>
-
Read The remainders and
reverse them Those
.
are
the
binary numbers
.
examples >
-
8
& R
8 + 2 - 4 ,
0
y = 2 - 2, 0
2 = 2> - 1 ,
0
1 = 2 - 0 ,
1
: 8 = 1000
27 5
O R
5 + 2 - 2 ,
I
2 = 2 - 1, 0
1 = 2 >
-
0, 1
:
5= 101