Real48 compatibility (Delphi)
Go Up to Delphi Compiler Directives (List) Index
Type |
Switch |
Syntax |
{$REALCOMPATIBILITY ON} or {$REALCOMPATIBILITY OFF} |
Default |
{$REALCOMPATIBILITY OFF} |
Scope |
Local |
Remarks
In the default {$REALCOMPATIBILITY OFF} state, the generic Real type is equivalent to Double.
In the {$REALCOMPATIBILITY ON} state, Real is equivalent to Real48.
The REALCOMPATIBILITY switch provides backward compatibility for legacy code in which Real is used to represent the 6-byte real type, now called Real48. In new code, use Real48 when you want to specify a 6-byte real type.
Double is the preferred real type for most purposes.