System.ConvUtils.ConvUnitWithinNext

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ConvUnitWithinNext(const AValue, ATest: Double; const AType: TConvType; const AAmount: Double; const AAmountType: TConvType): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall ConvUnitWithinNext(const double AValue, const double ATest, const TConvType AType, const double AAmount, const TConvType AAmountType);

Properties

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

Description

Indicates whether a specified measurement exceeds another measurement by at most a specified amount.

Call ConvUnitWithinNext to determine whether the value specified by ATest exceeds the value specified by AValue by at most AAmount.

AValue is the base value against which to check ATest.

ATest is a measurement to test against AValue.

AType is the unit of measurement for both AValue and ATest.

AAmount is the amount by which ATest can exceed AValue.

AAmountType is the unit of measurement for AAmount.

ConvUnitWithinNext returns true if ATest equals AValue or exceeds it by at most AAmount.

See Also