Data.FmtBcd.FormatBcd
Delphi
function FormatBcd(const Format: string; Bcd: TBcd): string;
function FormatBcd(const Format: string; Bcd: TBcd; FS: TFormatSettings): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall FormatBcd(const System::UnicodeString Format, const TBcd &Bcd)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.FmtBcd.pas Data.FMTBcd.hpp |
Data.FmtBcd | Data.FmtBcd |
Description
Returns a string representation of a binary-coded decimal (BCD) value that reflects specified formatting.
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.