Data.FmtBcd.BcdMultiply

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.FmtBcd.pas
Data.FMTBcd.hpp
Unit: Data.FmtBcd
Parent: Data.FmtBcd

Delphi

procedure BcdMultiply(const bcdIn1, bcdIn2: TBcd; var bcdOut: TBcd); overload;
procedure BcdMultiply(const bcdIn: TBcd; const DoubleIn: Double; var bcdOut: TBcd);
procedure BcdMultiply(const bcdIn: TBcd; const StringIn: string; var bcdOut: TBcd);
procedure BcdMultiply(StringIn1, StringIn2: string; var bcdOut: TBcd);

C++

extern DELPHI_PACKAGE void __fastcall BcdMultiply(const TBcd &bcdIn1, const TBcd &bcdIn2, TBcd &bcdOut)/* overload */;

Description

Multiplies two BCD values.

BcdMultiply multiplies the first two arguments 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 multiplication, if possible. You can convert this to a specific precision and number of decimal places using the NormalizeBcd procedure.

See Also