System.Extended

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

type Extended = { built-in type };

C++

typedef long double          Extended;         // 10 byte real

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.pas
sysmac.h
System System

Description

Represents a high-precision floating-point value.

System.Extended offers greater precision than other real types, but is less portable. Be careful using System.Extended if you are creating data files to share across platforms.

On Win32 systems, the size of System.Extended is 10 bytes.

On Win64 systems, however, the System.Extended type is an alias for System.Double, which is only 8 bytes. This difference can adversely affect numeric precision in floating-point operations. For more information, see Object Pascal Considerations for Multi-Device Applications.

Writeln(IntToStr(SizeOf(Extended))); // displays 10 on Win32 and 8 on Win64

See Also