RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ConvUtils.ConvUnitDec Function

Decrements a specified measurement by a specified amount.

Pascal
function ConvUnitDec(const AValue: Double; const AType: TConvType; const AAmountType: TConvType): Double; overload;
function ConvUnitDec(const AValue: Double; const AType: TConvType; const AAmount: Double; const AAmountType: TConvType): Double; overload;
C++
Double ConvUnitDec(const Double AValue, const TConvType AType, const TConvType AAmountType);
Double ConvUnitDec(const Double AValue, const TConvType AType, const Double AAmount, const TConvType AAmountType);

ConvUtils

Call ConvUnitDec two decrement a measurement by a specified amount. The result is returned in the same measurement units as the original amount, although the amount by which the measurement is decremented can be expressed using a different unit of measurement in the same family. 

AValue is the original measurement. 

AType is the unit of measurement of the starting amount and the return value. 

AAmount is the amount by which to decrease AValue. If this value is omitted, it is assumed to be one. 

AAmountType is the unit of measurement for AAmount. 

 

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