Data.FmtBcd.FormatBcd

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FormatBcd(const Format: string; const Bcd: TBcd): string;
function FormatBcd(const Format: string; const Bcd: TBcd; const 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.

See Also