number-to-words
Reactive icon

Number To Words

Stable version 1.0.3 (Compatible with OutSystems 11)
Uploaded
 on 14 Jun (2 weeks ago)
 by 
5.0
 (2 ratings)
number-to-words

Number To Words

Documentation
1.0.3

Number & Currency Conversion Actions Documentation

This documentation describes two actions designed to convert numeric or decimal values into words in a consistent and localized format.

Action: CurrencyToWords


Purpose

Converts a numeric monetary amount between 1 and 999,999,999 into a grammatically correct textual representation, using either the Indian or Western (International) numbering system depending on the currency.

Inputs

Parameter Type Description
AmountString 
The numeric monetary value to convert. Supports decimals (e.g., 123456.78).
CurrencyStringA valid ISO 4217 currency code (e.g., "INR", "USD"). Determines unit, subunit, and format.

Output

Parameter TypeDescription
Words String The written representation of the amount in words, including currency and subunit names.


Example

Input:

  • Amount: 123456.78

  • Currency: "INR"

Output:

"One lakh twenty-three thousand four hundred fifty-six rupees and seventy-eight paisas."


All Accepted Currency Codes


INR, PKR, BDT, NPR, AFN, USD, AUD, CAD, NZD, SGD, HKD, TWD, BZD, FJD, ECD, BSD, BND, KYD, LRD, NAD, SBD, SRD, TTD, GBP, GIP, FKP, SHP, EGP, LBP, SYP, SSP, EUR, AED, MAD, QAR, SAR, BHD, KWD, JOD, DZD, OMR, THB, MYR, IDR, PHP, MXN, BRL, NGN, GHS, KES, CHF, VND


Action: NumberToWords


Purpose

Converts any numeric value between 1 and 999,999,999, including optional decimals, into its full textual representation without referencing currency.

Inputs

Parameter Type Description
DecimalTextA decimal number as text (e.g., "123456.78"). Allows both whole and fractional values.

Output

Parameter Type Description
WordsTextThe number fully converted into words.

Example

Input:

  • Decimal: "123456.78"

Output:

"One hundred twenty-three thousand four hundred fifty-six point seven eight"


1.0.2

Number & Currency Conversion Actions Documentation

This documentation describes two actions designed to convert numeric or decimal values into words in a consistent and localized format.

Action: CurrencyToWords


Purpose

Converts a numeric monetary amount between 1 and 999,999,999 into a grammatically correct textual representation, using either the Indian or Western (International) numbering system depending on the currency.

Inputs

Parameter Type Description
AmountString 
The numeric monetary value to convert. Supports decimals (e.g., 123456.78).
CurrencyStringA valid ISO 4217 currency code (e.g., "INR", "USD"). Determines unit, subunit, and format.

Output

Parameter TypeDescription
Words String The written representation of the amount in words, including currency and subunit names.


Example

Input:

  • Amount: 123456.78

  • Currency: "INR"

Output:

"One lakh twenty-three thousand four hundred fifty-six rupees and seventy-eight paisas."


All Accepted Currency Codes


INR, PKR, BDT, NPR, AFN, USD, AUD, CAD, NZD, SGD, HKD, TWD, BZD, FJD, ECD, BSD, BND, KYD, LRD, NAD, SBD, SRD, TTD, GBP, GIP, FKP, SHP, EGP, LBP, SYP, SSP, EUR, AED, MAD, QAR, SAR, BHD, KWD, JOD, DZD, OMR, THB, MYR, IDR, PHP, MXN, BRL, NGN, GHS, KES, CHF, VND


Action: NumberToWords


Purpose

Converts any numeric value between 1 and 999,999,999, including optional decimals, into its full textual representation without referencing currency.

Inputs

Parameter Type Description
DecimalTextA decimal number as text (e.g., "123456.78"). Allows both whole and fractional values.

Output

Parameter Type Description
WordsTextThe number fully converted into words.

Example

Input:

  • Decimal: "123456.78"

Output:

"One hundred twenty-three thousand four hundred fifty-six point seven eight"