System.ConvUtils.TConvTypeInfo.ToCommon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ToCommon(const AValue: Double): Double; virtual; abstract;

C++

virtual double __fastcall ToCommon(const double AValue) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
System.ConvUtils.pas
System.ConvUtils.hpp
System.ConvUtils TConvTypeInfo

Description

Converts measurements in the units represented by this conversion type to the base units of the conversion family.

ToCommon provides part of the underlying implementation of the global Convert function. In order to convert a measurement from one set of units to another, Convert calls the ToCommon method of the source conversion type's TConvTypeInfo instance to obtain the measurement in the base units of the conversion family, and then calls the ToCommon method of the destination conversion type's TConvTypeInfo instance to obtain the measurement in the destination units.

TConvTypeInfo introduces ToCommon as an abstract (pure virtual) method. Descendant classes implement this method to perform the conversion from the units represented by this conversion type to the base units of its conversion family.

See Also