RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FMTBcd.FormatBcd Function

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

Pascal
function FormatBcd(const Format: string; Bcd: TBcd): string;
C++
AnsiString FormatBcd(const AnsiString Format, TBcd Bcd);

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

Format indicates how the resulting string should be formatted. It uses the same format specifiers as pertain to the FormatFloat function. 

Bcd is the value to convert to a string. 

 

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