The CurrencyFormatGen Generator can format an Integer, Long, Float, or Double value, referenced from a given Attribute, and format that value into a given currency format based on the language, country, and an options variant.
The list of language codes may be found at the following URL: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes.
The list of country codes may be found at the following URL: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
The following parameters may be configured for the CurrencyFormatGen Generator. Items with an asterisk* are required.
- reference* - Defines the Attribute to reference. Note: The Attribute being referenced should use a Generator that produces a numeric value.
- language* - Defines language code to be used with a given country code. Use this URL to see a list of codes: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes.
- country* - Defines country code to be used with a given language code. Use the URL to see a list of codes: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
- variant - Defines an optional variant. The variant argument is a vendor or browser-specific code. For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX. Where there are two variants, separate them with an underscore, and put the most important first.
Example: Format Currency for Sweden
For this example, the RandomGen Generator has been linked to the CurrencyFormatGen Generator to generate a random number between 1 and 10000. This number is then formatted to a Swedish currency.
RandomGen Generator Configuration