4.2 Daily practice

What is 99 (decimal) octal representation is?

99 / ...... 3 12 8 = 
12/8 = 1 ......... 4 
1/8 1 = 0 .......... 
99 (decimal) 143 indicates octal 

octal, decimal turn, there are two ways: "direct method" and the "indirect method." 
Direct method: There are two ways to "convert the integer portion" and "the fractional part of the conversion": 
the integer part of the conversion: In addition to taking more than 8 method, each time the integer part is divided by 8, the number of digits on the right for more than, in addition to continued business 8, and the remainder is on number one position on the right, then keep on going and so on, until the quotient is zero, and finally arranged a number from more than last forward on it. 
Fractional part of the conversion: This is by 8 rounding method, which means that the fractional part multiplied by 8, then take the integer part, let the rest of the fractional part multiplied by 8, then take the integer part first, and then keep on going, We have to take the fractional part is zero, 0 if it is never four into three homes (like rounding). 
Indirect method: first converted into binary and then binary to decimal

Guess you like

Origin www.cnblogs.com/ljy123/p/12623546.html