| 注册
首页|期刊导航|计算机与数字工程|十进制整数转换为二进制整数的快速方法

十进制整数转换为二进制整数的快速方法

刘硕 彭雷

计算机与数字工程2017,Vol.45Issue(2):332-334,408,4.
计算机与数字工程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

刘硕 1彭雷2

作者信息

  • 1. 荆门市第一中学 荆门 448000
  • 2. 中国地质大学计算机学院 武汉 430074
  • 折叠

摘要

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)

计算机与数字工程

OACSTPCD

1672-9722

访问量0
|
下载量0
段落导航相关论文