Data.FmtBcd.BcdSubtract

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BcdSubtract(const bcdIn1, bcdIn2: TBcd; var bcdOut: TBcd);

C++

extern DELPHI_PACKAGE void __fastcall BcdSubtract(const TBcd &bcdIn1, const TBcd &bcdIn2, TBcd &bcdOut);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.FmtBcd.pas
Data.FMTBcd.hpp
Data.FmtBcd Data.FmtBcd

Description

Subtracts one BCD value from another.

BcdSubtract subtracts bcdIn2 from bcdIn1 and returns the result as bcdOut.

The return value is given a precision and number of decimal places that is sufficient to accurately represent the result of the subtraction. You can convert this to a specific precision and number of decimal places using the NormalizeBcd procedure.

See Also