Name

$RealCompatibility Compiler Directive

Syntax

{$RealCompatibility Off} // default
{$RealCompatibility On}

Scope

Local

Description

When you enable the $RealCompatibility directive, the compiler makes the Real type equivalent to Real48. By default, Real is equivalent to Double. This directive exists for backward compatibility. New programs should use the new floating-point types (Single, Double, and Extended). If you must read an old Real value from a file, you can use Real48.

See Also

Double Type, Extended Type, Real Type, Real48 Type, Single Type

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.