From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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


extern DELPHI_PACKAGE double __fastcall ConvUnitDiff(const double AValue1, const TConvType AType1, const double AValue2, const TConvType AType2, const TConvType AResultType);


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


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

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.

See Also