RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FMTBcd.BcdAdd Function

Adds two TBcd values.

Pascal
procedure BcdAdd(const bcdIn1: TBcd; const bcdIn2: TBcd; var bcdOut: TBcd); deprecated;
C++
BcdAdd(const TBcd bcdIn1, const TBcd bcdIn2, TBcd bcdOut);

FMTBcd

BcdAdd adds bcdIn1 to bcdIn2 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 addition. You can convert this to a specific precision and number of decimal places using the NormalizeBcd procedure. 

 

BcdSubtract 

BcdMultiply 

BcdDivide 

NormalizeBcd

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!