Data.FmtBcd.BcdToStrF

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 BcdToStrF(const Bcd: TBcd; Format: TFloatFormat;
const Precision, Digits: Integer): string;
function BcdToStrF(const Bcd: TBcd; Format: TFloatFormat;
const Precision, Digits: Integer; const FS: TFormatSettings): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall BcdToStrF(const TBcd &Bcd, System::Sysutils::TFloatFormat Format, const int Precision, const int Digits)/* overload */;

Description

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

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.

See Also