RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FMTBcd.BcdToStrF Function

Returns a string representation of a binary-coded decimal (BCD) value that reflects specified formatting.

Pascal
function BcdToStrF(const Bcd: TBcd; Format: TFloatFormat; const Precision: Integer; const Digits: Integer): string;
C++
AnsiString BcdToStrF(const TBcd Bcd, TFloatFormat Format, const int Precision, const int Digits);

Use BcdToStrF to convert a binary-coded decimal value into a string. 

Value is the BCD value to convert to a string. 

Format is the formatting code that indicates the overall type of formatting to use. 

Precision indicates the maximum number of significant digits in the resulting string. 

Digits indicates the maximum number of digits past the decimal point in the resulting string. 

 

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