Data.FmtBcd.BcdDivide
Delphi
procedure BcdDivide(const Dividend, Divisor: TBcd; var bcdOut: TBcd);
procedure BcdDivide(Dividend, Divisor: string; var bcdOut: TBcd);
procedure BcdDivide(const Dividend: TBcd; const Divisor: Double; var bcdOut: TBcd);
procedure BcdDivide(const Dividend: TBcd; const Divisor: string; var bcdOut: TBcd);
C++
extern DELPHI_PACKAGE void __fastcall BcdDivide(const TBcd &Dividend, const TBcd &Divisor, TBcd &bcdOut)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.FmtBcd.pas Data.FMTBcd.hpp |
Data.FmtBcd | Data.FmtBcd |
Description
Divides one BCD value by another.
BcdDivide divides Dividend by Divisor 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 division, if possible. (The number of decimal places in the result, however, will never exceed 10.) You can convert this to a specific precision and number of decimal places using the NormalizeBcd procedure.