API:System.ConvUtils.TConvTypeFactor.FromCommon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FromCommon(const AValue: Double): Double; override;

C++

virtual double __fastcall FromCommon(const double AValue);

Properties

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

Description

Converts measurements in the base unit for the conversion family into the units represented by this conversion type.

System.ConvUtils.TConvTypeFactor.FromCommon inherits from System.ConvUtils.TConvTypeInfo.FromCommon. All content below this line refers to System.ConvUtils.TConvTypeInfo.FromCommon.

Converts measurements in the base unit for the conversion family into the units represented by this conversion type.

FromCommon 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 FromCommon method of the destination conversion type's TConvTypeInfo instance to obtain the measurement in the destination units.

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

See Also