Number to words (English & Arabic)
text_number_to_wordsConvert numbers and currency amounts into English or Arabic words for cardinals, ordinals, cheque writing, and Arabic tafqeet, including decimals and currency sub-units.
Instructions
Spell a number in words in English and Arabic: English cardinal (with decimals, optional British "and"), ordinal (twenty-first), cheque wording for an amount in a currency (cents in words or as 25/100, optional "only"), Arabic cardinal, and Arabic tafqeet for amounts with correct gender/number agreement of the currency noun (optional "faqat … la ghayr" wrapper and the modern 100 spelling). Currencies: JOD, USD, SAR, AED, KWD, EGP, GBP (or none). Accepts Arabic-Indic digits and thousands separators. Up to 999 trillion (15 digits). Web version: https://s3eidat.github.io/number-words/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Add "only" (English) and the Arabic "faqat … la ghayr" wrapper to amounts. | |
| number | Yes | The number or amount, e.g. "1500.250", "1,234,567.89", -12.05 (Arabic-Indic digits work too). | |
| british | No | British English "and": one hundred and five. | |
| currency | No | Currency for cheque / tafqeet wording: none (default), JOD, USD, SAR, AED, KWD, EGP, GBP. | none |
| subStyle | No | Cheque sub-units in words (twenty-five cents) or as a fraction (25/100). | words |
| modernHundred | No | Arabic: use the modern spelling of "hundred" (without the extra alif). |