Show: Delphi C++
Display Preferences

System.Comp

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type Comp = { built-in type };

C++

struct Comp : public CompBase
{
  Comp();
  Comp(double);
  Comp(Currency);
  Comp &operator =(double);
  Comp &operator =(Currency);
  operator double() const;
  operator Currency() const;
};

Properties

Type Visibility Source Unit Parent
type
class
public
System.pas
syscomp.h
System System

Description

Represents a type for numbers that can be represented with floating-point notation.

The Comp (computational) type is native to the Intel processor architecture and represents a 64-bit integer. It is classified as real, however, because it does not behave like an ordinal type (for example, you cannot increment or decrement a Comp value.) Comp is maintained for backward compatibility only. Use the Int64 type for better performance.

The range for the Comp type is from -2^63+1 through 2^63-1. The size in bytes of a Comp value is 8.

Note: Comp is not inter-operable with C++.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance