Skip to main content

Turning numbers into words

Explaining the In Words operation

Lorraine avatar
Written by Lorraine
Updated over a week ago

This operation will take an inputted number and output the number in words, such as in the screenshot below. For example, 554 will be outputted as five hundred fifty-four as in the example below.

For added help feel free to watch this video:

  1. To start off, navigate to the Operations tab in your template. To start off, navigate to the Operations tab in your template. Then, click the blue + button.

2. A pop up menu will appear on the right. Rename your operation to your desired name and click "Rename operation".

3. To create the operation, click the "Add" button and select In Words under Localisation, so that In Words is in the top band.

4. Then, click the "Add" button again and choose the attribute where the operation will pull the information from (e.g. NUMBER OF APPLES). In the drop down list for the attribute, you can either select an existing attribute or you can create a wholly new attribute.

5. Finally, the number can be localised for different countries, e.g. from the US all the way to China (this will dictate the language used for your operation) if you skip this part it will default to English. You can do this by adding a "Text" argument and adding the relevant locale, for example, the locale for English is "en_GB" (other commonly used ones include "es" for Spanish, "fr" for French, "de" for German and "pt" for Portuguese). If you want to see more locales, you can check our operations guide here.

6. After this, navigate back to the "Document" tab. Navigate to the Automation tab on the blue bar on the top and click the Operations icon. Select the relevant operation and click insert.

7. Your operation should now work! Click on the "Live Demo" to test it out by answering the relevant question.

Did this answer your question?