×

Format Currency

iOS 15 +

Notes

Formats the input amount as currency. If a currency is not specified, it uses the currency of the system ActionsLocale.

Syntax

formatCurrency(amount: <#Double#>, currency: <#Object (Currency)#>)

Example

formatCurrency(amount: 104021, currency: Currency(identifier: "USD", displayString: "USD — US Dollar", code: "USD")