System.ConvUtils.ConvUnitDec

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ConvUnitDec(const AValue: Double; const AType, AAmountType: TConvType): Double;
function ConvUnitDec(const AValue: Double; const AType: TConvType; const AAmount: Double; const AAmountType: TConvType): Double;

C++

extern DELPHI_PACKAGE double __fastcall ConvUnitDec(const double AValue, const TConvType AType, const TConvType AAmountType)/* overload */;

Properties

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

Description

Decrements a specified measurement by a specified amount.

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.

See Also