Format number to string

Use the Format number to string action A tool for building the processes, logic, and direction within workflows. to format and change a Decimal or Integer value to a Text string value.

For the Text string value which the actions outputs, you can specify:

  • The locale which corresponds to the geographical-based standard of number formatting.
  • The number format: currency, number, or percentage.

For example, your London-based company want the product prices on their invoices to have the appropriate currency symbol and placement of separators.

By using the Format number to string action, you reformat a variable that stores the prices entered in their online order forms, specifying United Kingdom (EN-GB) as the locale and currency as the format.

You configure the action to format a Decimal value of 1884.50 to a Text string value of £1,884.50.

You store the Text value in another variable and use it when you generate an invoice document using the Generate document action.

Configure the Format number to string action

  1. Add the action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.

  2. Type the Number value.
  3. Select the Locale.
  4. Select the Format.
  5. Select a variable for Output number to string, which stores the converted Text string value.

Format number to string action fields and settings

Field

Description

Variable

Number

The Decimal or Integer value you want to format and convert to a Text string value.

Decimal, Integer

Locale

The geographical-based standard of number formatting.

The following locales are available:

Austria (de-AT), Belgium (nl-BE), France (fr-FR), Germany (de-DE), Japan (ja-JP), Netherlands (nl-NL), Spain (es-E), Switzerland (de-CH), United Kingdom (en-GB), United States (en-US)

n/a

Format

The format the action changes the Decimal or Integer value to. The placement of the separator (comma, period, apostrophe, or space) depends on the locale you select.

  • Currency: A monetary format including the currency symbol, separator, and up to two decimal places.
  • Number: A number format including the placement of the separator.
  • Percentage: Number multiplied by 100 and displayed with a percent symbol.

(n/a)

Output number to string

The variable which stores the Text string value of the number which you can use later in the workflow. For example, you can insert this variable in a Send an email action which displays the actual value of the variable in the email message.

Text