System.TypInfo.TFloatType
Delphi
TFloatType = (ftSingle, ftDouble, ftExtended, ftComp, ftCurr);
C++
enum DECLSPEC_DENUM TFloatType : unsigned char { ftSingle, ftDouble, ftExtended, ftComp, ftCurr };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | System.TypInfo.pas System.TypInfo.hpp |
System.TypInfo | System.TypInfo |
Description
Enumerates floating point number types in the TTypeData record.
The GetTypeData routine utilises Delphi's RTTI (Run Time Type Information) to return a pointer to TTypeData record that describes a component property data type.
TTypeData is a variant record : the layout depends on the property TTypeKind value. When it is tkFloat, the data is one of the TFloatType enumerated values.
The TFloatType value meanings are as follows :
Value | Meaning |
---|---|
ftSingle |
Single data type. (-1.5 x 10^45 .. 3.4 x 10^38) |
ftDouble |
Double data type. (-5.0 x 10^324 .. 1.7 x 10^308) |
ftExtended |
Extended data type. (-3.6 x 10^4951 .. 1.1 x 10^4932) |
ftComp |
Comp data type. (-2^63+1 .. 2^63-1) |
ftCurr |
Currency data type. (20 significant digits, 4 decimal places) |
See Also
Code Examples