计算机与数字工程2017,Vol.45Issue(2):332-334,408,4.DOI:10.3969/j.issn.1672-9722.2017.02.024
十进制整数转换为二进制整数的快速方法
A Fast Method to Convert a Decimal Integer into A Binary Integer
摘要
Abstract
It is an important problem in computer field to convert a decimal data into a binary data used by the computers.The classic method to convert a decimal integer into a binary integer is inverting the remainder by dividing the base.However, the classic method is not convenient and easy to make mistakes when the data is large.Based on the unique attributes that the weight of each bit of the binary integer is a super increasing sequence and there are only 0 and 1 in the characters of the binary data, a fast method to convert a decimal integer into a binary integer is presented in this paper.Some examples of the conversion method are also given.The result shows that the new method is simpler and more efficient than the classic method, especially when the data is large.关键词
十进制整数/二进制整数/整数转换/超递增序列Key words
decimal integer/binary integer/integer conversion/super increasing sequence分类
信息技术与安全科学引用本文复制引用
刘硕,彭雷..十进制整数转换为二进制整数的快速方法[J].计算机与数字工程,2017,45(2):332-334,408,4.基金项目
国家自然科学基金(编号:41571403) (编号:41571403)
中国博士后科学基金特别资助项目(编号:2012T50681)资助. (编号:2012T50681)