Skip to content
Mohsen Alyafei edited this page Jul 28, 2020 · 17 revisions

First test page

Arqam Configuration Options

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.

No. Option Default Purpose
1 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.
2 Miah on Selects between "مئة" (off) and "مائة" (on) style.
3 MiahSeparate off Use separation between number and hundred words (e.g. ثلاثمائة becomes ثلاث مائة).
4 Tashkeel off Use full Tashkeel (تشكيل كامل للحروف)
5 TanweenOnly off Use Tanweens (Tanween Fath/Rafi, Kasr, and Dham) (استخدام تنوين الفتح/رفع وتنوين النصب والجر)
6 Tanween on Use Tanween Fath only (تنوين فتح/رفع) Default Basic Tanween is ON
7 ShortScale off Use the Short Scale Numbering System. The Default is the Arabic-Modified Short Scale Numbering System.
8 LongScale off Use the Lomg Scale Numbering System. The Default is the Arabic-Modified Short Scale Numbering System.
9 Comma off Insert a comma between the number triplet scale text.
10 Accountant off Use the accounting mode; helpful to get the correct legal writing.
11 WholeNumAtEnd off Adds the whole number at the end of the text inside round brackets.
12 FractionsInNums off Displays the fractional part as a number rather than text.
13 FractionsInBrackets off Inserts the fractional part (either text or number) inside round brackets at the end of the text.
14 IgnoreFractions off Ignores the fractional part of the number.
15 NumbersOnly off Ignores any currencies and displays text for the number only.
16 IgnoreCountry off Ignores the country name but keeps the currency name.
17 FractionFaslah off The word "fasila" (فاصلة) is added before the fractional part for the number. The default is "Juzu" (جزء).
18 FractionPlaces 10 Default 10 decimal points for fractions (max 20)
19 Prefix none Add a prefix text before the text. Default no prefix
20 Suffix none Add a suffix text to the end of the text. Default no suffix
21 MaxZeros 100 The maximum scale zeros. Default up to 100 zeros for numbers. This can be up to 3000 zeros.
Clone this wiki locally