System.ConvUtils.ConvUnitCompareValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ConvUnitCompareValue(const AValue1: Double; const AType1: TConvType; const AValue2: Double; const AType2: TConvType): TValueRelationship;

C++

extern DELPHI_PACKAGE System::Types::TValueRelationship __fastcall ConvUnitCompareValue(const double AValue1, const TConvType AType1, const double AValue2, const TConvType AType2);

Properties

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

Description

Indicates the relationship between two measurements.

Call ConvUnitCompareValue to compare the two measurements. The two measurements must measure the same thing (use the same conversion family), but do not need to use the same units of measurement.

AValue 1 and AValue2 are the two measurements to compare.

AType1 is the unit of measurement for AValue1.

AType2 is the unit of measurement for AValue2.

ConvUnitCompareValue returns

LessThanValue if AValue1 represents a smaller value than AValue2.

EqualsValue if AValue1 is equivalent to AValue2.

GreaterThanValue if AValue1 represents a larger value than AValue2.

See Also