-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Mohsen Alyafei edited this page Jul 28, 2020
·
17 revisions
First test page
Options can be controlled by using the arqamConfig()
.
Once specific options are specified, all subsequent calls for arqam.NumToWords()
will use the already defined options. So the arqamConfig()
can be called the start of the code. Options can be changed at any time.
Option | Default | Purpose |
---|---|---|
Currency | none | The 3-Letter ISO Code of the Currency. Specifying a valid currency-code will generate the text for a currency taking into account the sub-currency. |
Miah | on | Selects between "مئة" (off) and "مائة" (on) style. |
MiahSeparate | off | Use separation between number and hundred words (e.g. ثلاثمائة becomes ثلاث مائة). |
Tashkeel | off | Use full Tashkeel (تشكيل كامل للحروف) |
TanweenOnly | off | Use Tanweens (Tanween Fath/Rafi, Kasr, and Dham) (استخدام تنوين الفتح/رفع وتنوين النصب والجر) |
Tanween | on | Use Tanween Fath only (تنوين فتح/رفع) Default Basic Tanween is ON |
ShortScale | off | Use the Short Scale Numbering System. The Default is the Arabic-Modified Short Scale Numbering System. |
LongScale | off | Use the Lomg Scale Numbering System. The Default is the Arabic-Modified Short Scale Numbering System. |
Comma | off | Insert a comma between the number triplet scale text. |
Accountant | off | Use the accounting mode; helpful to get the correct legal writing. |
WholeNumAtEnd | off | Adds the whole number at the end of the text inside round brackets. |
FractionsInNums | off | Displays the fractional part as a number rather than text. |
FractionsInBrackets | off | Inserts the fractional part (either text or number) inside round brackets at the end of the text. |
IgnoreFractions | off | Ignores the fractional part of the number. |
NumbersOnly | off | Ignores any currencies and displays text for the number only. |
IgnoreCountry | off | Ignores the country name but keeps the currency name. |
FractionFaslah | off | The word "fasila" (فاصلة) is added before the fractional part for the number. The default is "Juzu" (جزء). |
FractionPlaces | 10 | Default 10 decimal points for fractions (max 20) |
Prefix | none | Add a prefix text before the text. Default no prefix |
Suffix | none | Add a suffix text to the end of the text. Default no suffix |
MaxZeros | 100 | The maximum scale zeros. Default up to 100 zeros for numbers. This can be up to 3000 zeros. |