To string action in Number
- Updated: 2025/12/18
To string action in Number
The To string action in the Number package enables you to convert a user-specified number to a string.
Note: The To string
action uses truncation and not rounding. Digits beyond the specified decimal
precision are discarded. The output string reflects the truncated value and does not retain
or carry hidden precision.
For example, if your input is 123.4567, the output will be truncated to 123.45 and not 123.46.
Settings
- In the Enter number field, enter a number or select a predefined Number variable.
- In the Enter number of digits after decimal field, enter the
amount of digits after the decimal.
To remove all the digits after the decimal, leave the default value of 0.
- In the Assign the output to variable field, select a
pre-defined String variable or create a new one to hold the
output. You can use prompt-assignment during building and testing
of the bot.Important: Ensure that you reassign the values from prompt-assignment to a user-created variable before deploying the bot into production.