RAD Studio (Common)
ContentsIndex
PreviousUpNext
Real48 compatibility (Delphi)
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. Note however, that the Real48 type is deprecated on Delphi for .NET. 

Double is the preferred real type for most purposes.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!