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. .
Double is the preferred real type for most purposes.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|