Definition and Usage
Convert number to text transforms a numeric value into text format with specified formatting options. This command allows you to control the number of decimal places and whether to include thousand separators in the resulting text.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Number to convert | Enter a number or numeric variable to convert to text | Any numeric value | Yes | Can use variable as input |
Decimal places | Specify the number of decimal places that will be included before truncation. Zeros can also be added to the end to pad the text in this way | Integer value | Yes | Use 0 for no decimal places |
Use thousand separator(s) | Choose whether to use comma as a thousand separator | True/False | No | Checked = Use separators; Unchecked = No separators |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
This action produces a text variable that contains the formatted number as specified by the parameters.
Using Variables in Conditions
You can use variables in this command by clicking the {x} icon next to input fields. This allows you to dynamically set the number to convert or the decimal places using previously defined variables. The output variable can be used in subsequent actions that require text input.
Notes
The input must be a valid number or a variable containing a numeric value.
If the number contains more decimal places than specified, it will be truncated rather than rounded.
The thousand separator is a comma (,) when enabled.
This command is useful for formatting numbers for display purposes, reports, or when specific text formatting is required.