By default, commas are not included in numbers while working in Studio Pro. Hence, there are scenarios when we need to add commas to numbers in a document.
In this article, you will learn how to do this using the JS function toLocaleString().
Here’s how to do it in a few steps:
1. Add a variable to a workflow. In the example below, the variable "num" contains the value "123456789"
2. To add commas to this number, use the syntax
3. To display the comma punctuation in numbers as it is done in the American system, you need to enter this syntax in the value field
num.toLocaleString("en-US"), as you can see below