RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitSameValue Function

Indicates whether two measurements are equivalent.

Pascal
function ConvUnitSameValue(const AValue1: Double; const AType1: TConvType; const AValue2: Double; const AType2: TConvType): Boolean;
C++
Boolean ConvUnitSameValue(const Double AValue1, const TConvType AType1, const Double AValue2, const TConvType AType2);

ConvUtils

Call ConvUnitSameValue to compare determine whether two measurements are equivalent. The two values can use different units of measurement, but the two units of measurement must be in the same conversion family. 

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. 

ConvUnitSameValue returns true if the two measurements are equivalent, false otherwise. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!