Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Format Currency

AI-generated

Summary

Format a numeric amount as a localized currency string according to the specified locale and currency code.

Inputs

  • Tool Category — Group of tools to display in the UI; does not affect operation behavior.
  • Amount (required) — The numeric amount to format as currency, provided as a string.
  • Locale (required) — Locale code to use for formatting the currency (e.g., 'en-US').
  • Currency (required) — ISO 4217 currency code (e.g., 'USD') to format the amount.
  • Output JSON Property — JSON property name where the formatted currency string will be stored in the output; defaults to 'currency'.

Output shape

a JSON object containing the formatted currency string stored under the specified output property

The result is a string with the formatted amount according to locale and currency, attached to each input item under the output JSON property key.

Examples

Example 1: Format amount 1234.56 in US Dollars for US English locale

Set Amount to '1234.56', Locale to 'en-US', Currency to 'USD', and Output JSON Property to 'currency'. The output JSON will contain {"currency":"$1,234.56"}.

Links

Discussion