Description

The NumberToWordsGen Generator references any other Generator that generates a number and then converts the number into words. You can use it to convert numbers to word format for: 

  • Check Images
  • Sales Invoices
  • Loan Amounts
  • Legal Documents
  • Letters or PDFs


Generator Parameters

The following parameters may be configured for the NumberToWordsGen Generator. Items with an asterisk* are required. 

  • reference* - Defines the Attribute to reference whose value will be converted into words. A constant number value may also be entered. 

  • wordStyle* - Defines the type of wording used to spell out the number. The choices are CheckWriting, Currency, and Words. You can also reference another Attribute. The referenced Attribute should always return the value in one of the following: 
    • CheckWriting - e.g., Five dollars and 56/100
    • Currency - e.g., Five dollars and fifty-six cents
    • Words - e.g., Five and fifty-six hundreds

  • remainderWord* - The value that sits between the whole number and the remainder number. The default value is 'and.' The value may be changed to anything, a reference to an Attribute, or the #{EMPTY} constant. For example - 'and' or 'dollars and'.

  • caseType* - Defines how the given value may be modified. The choices are 
    • SentenceCase - e.g., Five hundered fify-six
    • TitleCase - e.g., Five Hundred Fifty-Six
    • UpperCase - e.g., FIVE HUNDRED FIFTY-SIX
    • LowerCase - e.g., five hundred fifty-six


Example 1 - Generate Check Dollar Amount and Convert to Words

For this example, a RandomMoneyGen Generator has been linked within the Attribute.


The NumberToWordsGen Generator references the RandomMoneyGen Generator (gen1). Additionally, the remainderWord Parameter has been changed to "dollars and."


The generated output will appear as shown below: