RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FMTBcd.BcdMultiply Function

Multiplies two BCD values.

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

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!