Converts a binary-coded decimal value (BCD) to an integer.
function BcdToInteger(const Bcd: TBcd; Truncate: Boolean = False): Integer;
int BcdToInteger(const TBcd Bcd, Boolean Truncate = False);
FMTBcd
Use BcdToInteger to convert a binary-coded decimal value into an integer.
Bcd is the value to convert.
Truncate indicates how to handle values that include a decimal portion. If Truncate is true, BcdToInteger truncates the value specified by Bcd and converts only the integer portion. If Truncate is false, BcdToInteger raises an exception if the Bcd parameter does not represent an integer value.
IntegerToBcd
BCDToCurr
BCDToDouble
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|