c中的float ,double分别对英delphi中的什么类型阿

解决方案 »

  1.   

    Type   Range                         Significant digits Size in bytes
    Real48   2.9 x 10^-39 .. 1.7 x 10^38 11-12                  6
    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
    Extended   3.6 x 10^-4951 .. 1.1 x 10^4932 19-20                  10
    Comp   -2^63+1 .. 2^63-1             19-20 8
    Currency   -922337203685477.5808.. 922337203685477.5807 19-20 8
      

  2.   

    C++      Delphi      RangeChar      ShortInt      -128 to 127-      Char      1 ASCII character (0 to 255)Int, Short      SmallInt      -32,768 to 32,767Long      Integer / LongInt      -2,147,483,647 to 2,147,483,647Unsigned Char      Byte      0 to 255Unsigned Int / Unsigned Short      Word      0 to 65,535Unsigned Long      Cardinal / Longword      0 to 4,294,967,295Float      Single      3.4E-38 TO 3.4E+38Double      Double / Comp      1.7E-308 TO 1.7E+308Long Double      Extended      3.4E-4932 TO 3.4E+4932Void      Pointer      N/A -- an untyped pointer-      Boolean      True or FalseString      -      a C++ standard object-      String      An array of up to 255 ASCII characterschar FAR *      Pchar      Pointer to a null-terminated stringunsigned short FAR *      PWORD      Type of pointerLPWSTR      PWideChar      Type of pointerLPTSTR      PAnsiChar      Type of pointer 
      

  3.   

    再c语言中float ,double 
    在delphi中如何对应呢?