Newer Version Available

This content describes an older version of this product. View Latest

formatCurrency()

Returns a currency number based on the default currency format.

Signature

formatCurrency (number number)

Parameters

number
Type: number
The currency number to format.

Returns

Type: number
The formatted currency.

Sample Code

1var curr = 123.45;
2// Returns $123.45
3$A.localizationService.formatCurrency(curr);