RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitWithinNext Function

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

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

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. 

 

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