System.ConvUtils.ConvUnitDiff

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

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