摘要
在软件编制中数据类型的转换常会出现较大误差,通过分析数据在计算机中的存储格式,以及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.
出处
《微机发展》
2003年第a01期107-109,共3页
Microcomputer Development