Lucee Function Reference

lscurrencyformat()

Formats a number in a locale-specific currency format.

Example

lscurrencyformat(object number,[string type,[locale locale,[boolean useBrackets]]]):string

Category

date,string,formatting

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
number object  Yes   Currency value  
type string  No local local: the currency format and currency symbol used in the locale.
international: the international standard currency format and currency symbol of the locale.
none: the currency format used in the locale without a currency symbol.  
locale locale  No   Locale to use instead of the locale of the page when processing the function  
useBrackets boolean  No true When a number is negative, by default, it is wrapped in brackets