Description

The NumberToWordsGen Generator references any other Generator that generates a number and then converts the number into words. 


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 CheckWriting, Currency, or Words. 

  • remainderWord* - The value that sits in between the whole number and the remainder number. The default value is 'and.' The value may be changed to anything or a reference to an Attribute, or the #{EMPTY} constant. 
  • caseType* - Defines how the given value may be modified. The choices are SentenceCase, TitleCase, UpperCase, and LowerCase.


Example: 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: