RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitWithinPrevious Function

Indicates whether a specified measurement is at most a specified amount less than another measurement.

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

ConvUtils

Call ConvUnitWithinPrevious to determine whether the value specified by ATest is less than 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 be less than AValue. 

AAmountType is the unit of measurement for AAmount. 

ConvUnitWithinPrevious returns true if ATest equals AValue or is at most AAmount less than AValue. 

 

ConvUnitDiff 

ConvUnitWithinPrevious

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!