Sign in Join
FPDoc Onlineexperiment

CurrToStr function

In unit sysutils

Convert a currency value to a string.

Declaration

pascal
function CurrToStr(Value: Currency): 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.