摘 要: 浮点数是C语言中的一种数据类型,但在标准C中并没有给出其具体的描述,即数的存储格式及表示范 围。部分经典的C语言程序设计教程中给出了浮点数的表示范围,但存在不严谨和值得商榷的地方。结合IEEE754标 准,就C语言中浮点数内在存储格式进行分析并给出结论。 |
关键词: C语言;浮点数;表示范围 |
中图分类号: TP313
文献标识码: A
|
基金项目: 商洛学院教改项目(15jyjx135). |
|
C Language Floating-point Number of Represent the Range and Analysis |
TIAN Yi,FAN Jingbo
|
( School of Economics & Management, Shangluo University, Shangluo 726000, China)
|
Abstract: The float is a data type in C language,but its in standard C and did not give a specific of description:that is the number of storage format and the scope of representation.Part of classically C language programming tutorial gives a range of floating-point represent,but there is not rigorous and need to discussion.Combined IEEE754 standards,provided analyzation and conclusions in C language in internal storage floating-point format. |
Keywords: C language;floating-point;scope of representation |