剖析Intel IA32 架构下C 语言及CPU 浮点数机制 Version 0.01 哈尔滨工业大学 谢煜波 (email: xieyubo@126.com 网址:http://purec.binghua.com) (QQ:13916830 哈工大紫丁香BBSID:iamxiaohan) 前言 这两天翻看一本C 语言书的时候,发现上面有一段这样写到 例:将同一实型数分别赋值给单精度实型和双精度实型,然后打印输出。 #include <stdio.h> main() { float a double b a = 123456.789e4 b = 123456.789e4 printf(“%f\n%f\n”,a,b) } 运行结果如下:-analysis framework and the C language CPU float mechanism Version 0.0 a Harbin Industrial University Shushan wave (email : xieyubo@126.com website : http://purec.binghua.com) (QQ : HIT lilac BBSID 13916830 : iamxiaohan) Introduction The two epoch-making book on the C language, discovered that there are some cases written : the same number of each type is assigned to the single-precision and double-real float, then print output. # Include 下载
|