Input Builder Code
Build here by selection, then press «Code» to see how it is coded; you may then modify the code.
Call
toWords — a number or amount
formatRange — «من … إلى …»
ordinal — الأول، الحادي والعشرون
toDate — a date
toTime — a time or duration
toFraction — ¾, 2 ½
fromWords — words back to a number
Number
Range of
numbers — من ثلاثة إلى سبعة
a currency — من ألف ريال إلى ألفي ريال
ordinals — من الأول إلى العاشر
units of measure — من ثلاثة كيلومترات …
counted nouns (subjects) — من ثلاثة طلاب …
percentages — من عشرة بالمائة …
fractions — من ربع إلى ثلاثة أرباع
times — من الساعة التاسعة …
durations — من نصف ساعة إلى ساعتين
dates, Gregorian — Gulf & Egypt · يوليو
dates, Gregorian — Levant & Iraq · تموز
dates, Gregorian — North Africa · جويلية
dates, Gregorian — Morocco · يوليوز
dates, Gregorian — two names · يوليو/تموز
dates, Hijri
dates, both calendars
To
Month names
Gulf & Egypt · يوليو Levant & Iraq · تموز
North Africa · جويلية Morocco · يوليوز
two names · يوليو/تموز
Unit
Noun, one
Noun, many
Gender masculine feminine
Currency
Approximate
exact number
about — قرابة ألف
over — ما يزيد على ألف
under — أقلّ من ألف
at least — ما لا يقل عن ألف
at most — ما لا يزيد على ألف
a few (3–9) — بضعة آلاف
and some (1–9) — نيّف وعشرون
Word of «قرابة»
قرابة (default) نحو زهاء حوالَيْ
More options
Legal form auto none full
Scale arabic short long
Figure none after the words before the words
Decimals
Ordinal masculine feminine
Any JavaScript; arqam (the library: toWords and NumberFormat in Intl's shape) and arqamAR (its Arabic engine) is loaded with its units, explain and reader add-ons, and English (arqam.en). The value of every line is shown, in order; each run starts from the default options. Ctrl+Enter runs.
▶ Run Copy code Runs as you type