摘要
研究了基于IEEE 754标准的浮点数的存储格式,提出了一种基于ARM7的改进的浮点数转换成整型数的算法。分析了C/C++中的强制类型转换和改进浮点数转换成整数的算法,比较了两种算法的优缺点。并把改进算法移植到嵌入式平台ARM上。
This paper analyses of the floating point number' storge format based on IEEE 754, presents a improved algorithm based on ARM7 according to converting floating point number to integer. Compared, it discusses on C/C ++ data type conversion and the improved floating point number to integer, compares the advantages and shortages of the algorithms. This method improved the speed of converting floating point number to integer. And it is used on ARM.
出处
《信息技术》
2007年第12期18-19,共2页
Information Technology