New Algorithm of the Number System Transition
Wei Yitang · Bulletin of Science and Technology · 2012
When teaching the foundation of computer science for the freshmen,it is necessary to elaborate on the knowledge of transformation from binary number to decimal number.If we follow the traditional way of transformation which is step by step,it is complex and easy to get wrong.In this paper,when I teach on this knowledge,I propose a new algorithm: 8421 continued adding for the integral part and 0.5 sum of continued halving for the fractional part.This algorithm can greatly reduce the workload of computation;it is more efficient and can easily avoid the faults.