1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【超初歩的】プログラミングに必要な数学知識

Last updated at Posted at 2021-08-17

#1 10進法 2進法 の計算

1100 を2進法に分解すると

1 x 23
1 x 22
0 x 21
0 x 20

この式を分解すると10進法に変換できるね!
1 x 23 +
1 x 22 +
1 x 21 +
1 x 20 +
= 8 + 4 + 0 + 0
= 12

12 を10進法に分解すると

12 % 2 = 6 余り0
6 % 2 = 3 余り0
3 % 2 = 1 余り1
1 余り1

・下から書いて1100

10進法の場合は10が基数、2進法の場合は2が基数
変換することを基数変換

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?