浮点数的存贮格式及安全转换  

Storage Format and Security Conversion of the Floating Numbers

在线阅读下载全文

作  者:王崇晖[1] 

机构地区:[1]中国人民解放军63788部队

出  处:《微机发展》2003年第a01期107-109,共3页Microcomputer Development

摘  要:在软件编制中数据类型的转换常会出现较大误差,通过分析数据在计算机中的存储格式,以及C语言的编译方法,探讨了出现误差的原因,并给出了在C语言编程环境下,浮点数到整型数的正确转换方法。Errors often occur in the data type conversion.This thesis investigates possible sources of these errors by analyzing the data storage format in computers and the compilation process in C language, and proposes the correct approach to convert floating numbers to integers in C environment.

关 键 词:C语言 软件设计 浮点数 存贮格式 安全转换 计算机 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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