想知道这两种类型的区别,这是delphi帮助里的描述,
Type Range              Significant digits      Size in bytes
Single 1.5 x 10^-45 .. 3.4 x 10^38 7-8                 4
Double 5.0 x 10^-324 .. 1.7 x 10^308 15-16                 8有没有其它方面的呢?比如说运算速度?或者更适用于处理哪类数据?

解决方案 »

  1.   

    Delphi帮助不是写的很清楚吗,Single 这个类型的长度是四个字节的,Double是8个字节的
      

  2.   

    For fractional numbers, Double is the most efficient data type, because the processors on current platforms perform floating-point operations in double precision. However, operations with Double are not as fast as with the integral types such as Integer.这是msdn上的解释,
    double类型是浮点数中效率最高的,有一点疑问,GDI+中浮点数都是采用Single类型,是出于什么考虑呢?