超范围条件下,数值型数据值的算法及公式推导——以KEILC51为例  

The Value's Algorithm and Algorithm Formula Derivation for Numerical Data Beyond Its Range——Based on KEIL C51

在线阅读下载全文

作  者:崔凯[1] 李彬彬[1] 刘旭东[1] 

机构地区:[1]营口职业技术学院电气电子工程系,辽宁营口115000

出  处:《长春师范学院学报(自然科学版)》2013年第6期23-26,共4页Journal of Changchun Teachers College

基  金:国家自然科学基金资助项目(11147132)

摘  要:在C语言教学中,数据类型其相应的数据范围的取值问题都是以补码进行讲解的。当超数据范围时,数据的真实值发生了变化,若对其进行计算,其理论依据仍是补码。但这种计算是很复杂的,也极易出错,对于初学的学生甚至教师都是一种考验。而对于任意一个给定的数,要很快计算出其结果,对于绝大多数师生似乎是一件"很难完成的任务"。本文先用补码进行理论推导,之后以大家最熟悉的十进制数进行计算,并最终推导出计算公式,使超数据范围条件下的任意数据的计算都能准确、轻松地实现。In the C language teaching, both data types and its con'esponding data range of values are explained by complementary code. When the data is beyond its range, the real value is changed "also. And if the data should be calculated, the theoretical basis is still complementary code theory. However, the calculation is intricate and error - prone, and it is a kind of test for the beginner learners and even for the teachers. It seems to be a "Mission Impossible" for most teachers and learners to immediately calculate the result of any data given at random. This article carries on the theoretical derivation with complementary data, and then with the most familiar decimal number calculation deduces the final calculation formula of arbitrary data in order to realize any data calculation accurately and easily when the data is beyond its range.

关 键 词:C语言 超数据范围 数值型数据 算法公式 

分 类 号:TP301.6[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象