2進システム |
‥‥ | |
29 (=
28 (=
27 (=
26 (=
25 (=
24 (=
23 (=
22 (=
21 (=
20 (=
|
512
256
128
64
32
16
8
4
2
1
|
)
)
)
)
)
)
)
)
)
)
|
|
|
|
十進数←→2進数 |
|
315 =
|
+
+
+
+
+
+
+
+
|
256
128
64
32
16
8
4
2
1
|
x 1
x 0
x 0
x 1
x 1
x 1
x 0
x 1
x 1
|
=
|
28 x 1
+ 27 x 0
+ 26 x 0
+ 25 x 1
+ 24 x 1
+ 23 x 1
+ 22 x 0
+ 21 x 1
+ 20 x 1
|
=
|
[ 100111011 ]2
|
|