RAD Studio VCL Reference
|
Indicates the relationship between two measurements.
function ConvUnitCompareValue(const AValue1: Double; const AType1: TConvType; const AValue2: Double; const AType2: TConvType): TValueRelationship;
TValueRelationship ConvUnitCompareValue(const Double AValue1, const TConvType AType1, const Double AValue2, const TConvType AType2);
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|