System.ConvUtils.ConvUnitSameValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ConvUnitSameValue(const AValue1: Double; const AType1: TConvType; const AValue2: Double; const AType2: TConvType): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall ConvUnitSameValue(const double AValue1, const TConvType AType1, const double AValue2, const TConvType AType2);

Properties

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

Description

Indicates whether two measurements are equivalent.

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.

See Also