FMTBcd.BcdSubtract
From RAD Studio VCL Reference
Contents |
Delphi Information
From FMTBcd.pas
procedure BcdSubtract(const bcdIn1: TBcd; const bcdIn2: TBcd; var bcdOut: TBcd);
Unit: FMTBcd
Type: procedure
Visibility: public
C++ Information
From FMTBcd.hpp
void __fastcall BcdSubtract(const Fmtbcd::TBcd & bcdIn1, const Fmtbcd::TBcd & bcdIn2, Fmtbcd::TBcd & bcdOut);
Unit: FMTBcd
Type: function
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.