Data.FmtBcd.FormatBcd

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.FmtBcd.pas
Data.FMTBcd.hpp
Unit: Data.FmtBcd
Parent: Data.FmtBcd

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 */;

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