double-float 双精度
int double float 值类型
float double 浮点型 ; 基本数据类型 ; 实型 ; 基本数据类型━━┫
double float foot bottom 双吃虚线袜底
The memory space of a float or double value is limited, so some values cannot be represented.
浮点或者双精度浮点的内存空间是限定了的,所以某些值不能被表示。
These classes allow the various geometric shapes to be constructed with coordinates of either double or float precision.
这些类允许各种几何图形建立在双精度或浮点精度的坐标系上。
The next two—float and double—represent floating-point numbers, again with different dynamic ranges.
随后的两种——float和double,代表了浮点型数,同样具有不同的动态范围。
But one of the teaching fellas also passed long to us recently, a little real world example of what happens when you're not mindful of various data types and you're not mindful of the imprecision that's inherent in representing data in a computer, at least using a language like C and low level primitives like floats and even doubles.
最近有个助教告诉我们,一个现实世界中的例子,当你不注意各种各样的数据类型,也不注意在计算机中表示数据时,其内在的不精确性,至少在用像C语言,和float甚至double型数据时,那将会发生什么?
应用推荐