Computer Logical Organization 简明教程
Octal Arithmetic
Octal Number System
以下是八进制数系的特征:
Following are the characteristics of an octal number system.
-
Uses eight digits, 0,1,2,3,4,5,6,7.
-
Also called base 8 number system.
-
Each position in an octal number represents a 0 power of the base (8). Example: 80
-
Last position in an octal number represents an x power of the base (8). Example: 8x where x represents the last position - 1.
Example
八进制数 − 125708
Octal Number − 125708
计算十进制当量 −
Calculating Decimal Equivalent −
Step |
Octal Number |
Decimal Number |
Step 1 |
125708 |
1 × 84) + (2 × 83) + (5 × 82) + (7 × 81) + (0 × 8010 |
Step 2 |
125708 |
(4096 + 1024 + 320 + 56 + 0)10 |
Step 3 |
125708 |
549610 |
Note − 125708 通常写为 12570。
Note − 125708 is normally written as 12570.
Octal Addition
以下八进制加法表可帮助你处理八进制加法。
Following octal addition table will help you to handle octal addition.
要使用此表,只需遵循本示例中使用的说明:加 68 和 58。在 A 列中找到 6,然后在 B 列中找到 5。两个数字之和在表中两个列相交的“和”区域中。
To use this table, simply follow the directions used in this example: Add 68 and 58. Locate 6 in the A column then locate the 5 in the B column. The point in 'sum' area where these two columns intersect is the 'sum' of two numbers.
68 + 58 = 138.
Octal Subtraction
八进制数的减法遵循与在任何其他数系中的数的减法类似的规则。唯一的区别在于借位数。在十进制系统中,你借一组 10。在二进制系统中,你借一组 2。在八进制系统中,你借一组 8。
The subtraction of octal numbers follows the same rules as the subtraction of numbers in any other number system. The only variation is in borrowed number. In the decimal system, you borrow a group of 1010. In the binary system, you borrow a group of 210. In the octal system you borrow a group of 810.