0
0

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.

【基本情報技術者】8進数を10進数に変換

Posted at

8進数5746を10進数に変換

【解説】
8進数5746,8093を10進数に変換する方法を説明してみたいと思います.

まず考え方として
1桁目はそのまま
2桁目は 8 * 値
3桁目は 8 * 8 * 値
4桁目は 8 * 8 * 8 * 値
1桁目 + 2桁目 + 3桁目 + 4桁目 = 10進数の値
となります。

今回の例、5746で実際計算してみます。
6
8 * 4 = 32
8 * 8 * 7 = 448
8 * 8 * 8 * 5 = 2560
6 + 32 + 448 + 2560 = 3046
となります。

77073もやってみます。
3
8 * 7 = 56
8 * 8 * 0 = 0
8 * 8 * 8 * 7 = 3584
8 * 8 * 8 * 8 * 7 = 28672
3 + 56 + 0 + 3584 + 28672 = 32315
となります。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?