Show: Delphi C++
Display Preferences

System.SysUtils.CurrToStrF

From XE2 API Documentation
Jump to: navigation, search

Delphi

function CurrToStrF(Value: Currency; Format: TFloatFormat; Digits: Integer): string;
function CurrToStrF(Value: Currency; Format: TFloatFormat; Digits: Integer; const AFormatSettings: TFormatSettings): string;

C++

extern PACKAGE System::UnicodeString __fastcall CurrToStrF(System::Currency Value, TFloatFormat Format, int Digits)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Converts a Currency value to a string, using a specified format.

CurrToStrF converts the Currency value given by Value to its string representation using the indicated float format convention. A call to CurrToStrF corresponds to a call to FloatToStrF with an implied precision of 19 digits.

The first form of CurrToStrF is not thread-safe, because it uses localization information contained in global variables. The second form of CurrToStrF, which is thread-safe, refers to localization information contained in the FormatSettings parameter. Before calling the thread-safe form of CurrToStrF, you must populate FormatSettings with localization information. To populate FormatSettings with a set of default locale values, call GetLocaleFormatSettings.

See Also

Personal tools
Previous Versions
Translations