RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitDiff Function

Subtracts one measurement from another and returns the result using a specified unit of measurement.

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

Call ConvUnitDiff to find the difference between two measurements, with the result expressed in a specified conversion type. 

AValue1 is the starting value. 

AType1 is the unit of measurement for AValue1. 

AValue2 is the value to be subtracted from AValue1. 

AType2 is the unit of measurement for AValue2. 

AResultType is the unit of measurement for the resulting value. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!