论文部分内容阅读
从上面的讨论可以看出,要把一个十进带小数转换成二进数,只要把整数部分与小数分分别进行转换,然后把所得的结果合并起来,就得到所求的二进数。例如,依例2和例4的结果,有(57)_(10)=(111001)_2;(0.375)_(10)=(0.011)_2。∴(57.375)_(10)=(111001.011)_2 十进数转换成二进数的原理,同样适用于十进数转化为p进数。我们只要把“2除取余”法变作“p除取余”法;把“2乘取整”法变作“p乘取整”法,
From the above discussion, we can see that to convert a decimal decimal to a binary number, we simply convert the integer part to the decimal fraction, and then combine the results to obtain the binary number we seek. For example, according to the results of Example 2 and Example 4, there are (57) _ (10) = (111001) _2; (0.375) _ (10) = (0.011) _2. ∴ (57.375) _ (10) = (111001.011) _2 The principle of converting decimal numbers to binary numbers also applies to converting decimal numbers to p-numbers. We only need to “2 remove the remainder of the law” into “p addition to take more than” method; “2 by the whole” method into “p by the whole” method,