SysUtils.CurrToStrF
Contents |
Delphi Information
From SysUtils.pas
function CurrToStrF(Value: Currency; Format: TFloatFormat; Digits: Integer): string; overload; function CurrToStrF(Value: Currency; Format: TFloatFormat; Digits: Integer; const FormatSettings: TFormatSettings): string; overload;
Unit: SysUtils
Type: function
Visibility: public
C++ Information
From SysUtils.hpp
System::UnicodeString __fastcall CurrToStrF(System::Currency Value, Sysutils::TFloatFormat Format, int Digits);
Unit: SysUtils
Type: function
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.