Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

CurrToStr

Convert a currency value to a string.

Declaration

Source position: sysstrh.inc line 228

function CurrToStr(

  Value: Currency

):string;

function CurrToStr(

  Value: Currency;

  const FormatSettings: TFormatSettings

):string;

Description

CurrToStr will convert a currency value to a string with a maximum of 15 digits, and precision 2. Calling CurrToStr is equivalent to calling FloatToStrF:

FloatToStrF(Value,ffNumber,15,2);

Note that on unix systems, the localization support must be enabled explicitly, see Localization.

Errors

None.

See also

FloatToStrF

  

Convert a float value to a string using a given format.

StrToCurr

  

Convert a string to a currency value.


Documentation generated on: Dec 24 2024