Click here to Skip to main content
11,932,681 members (55,621 online)
Click here to Skip to main content
Add your own
alternative version


13 bookmarked

Arabic currency conversion from numbers to letters

, 9 Aug 2009 CPOL
Rate this:
Please Sign up or sign in to vote.
Convert numbers to characters for Arabic applications.



This project can be useful in many applications, like ERPs, financial applications, or any application used by Arabic speakers to display any number "as digits to characters", which is called - in some Arab countries - "tafqit".


It's known that to write a number in Arabic characters, it's a little bit hard, as a number like 123 is written in English as "One Hundred twenty three", but in Arabic, it will be "One Hundred and three and twenty". So, for a big number - say 7 digits - it will be a little bit confusing to write it in this complicated form.

Using the code

The advantage of this code that it's pure SQL , so it will be easy to add it to any function, Stored Procedure, or View. Also, it can be used in both web and Windows applications. To use the code, first run the attached script in the desired database and then use the function called currency_conversion like this:

SELECT dbo.currency_conversion(12.10)

In the last example, the output will be:

اثني عشر جنيها  و عشره قرشا 

(1 row(s) affected)

Points of interest

As I mentioned before, this function can be used in both Windows and web applications as it is just a SQL function. Also, as it's a scalar function, it can be used in both Views and Stored Procedures. You can also modify the script to fit your country's currency; just replace "Egyptian Pound" with your currency.


  • 08/08/2009 --> Initial version.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Wael Refaat
Software Developer (Senior) ITWorx
Egypt Egypt
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionArabic currency conversion from numbers to letters Pin
Member 1165132918-May-15 1:53
memberMember 1165132918-May-15 1:53 
GeneralExcellent! Pin
Omar Gamil25-Apr-10 0:21
memberOmar Gamil25-Apr-10 0:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.151126.1 | Last Updated 9 Aug 2009
Article Copyright 2009 by Wael Refaat
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid