Delphi library for converting numbers and Algerian currency amounts to words in Arabic, French and English.
# NumberToWords
A simple and reusable **Delphi Unit** for converting monetary amounts into words in **Arabic, French, and English**.
This project is mainly designed for **Algerian currency (Algerian Dinar and Centimes)** and can be easily integrated into Delphi applications.
## ✨ Features
* 🇩🇿 Convert Algerian Dinar amounts to Arabic words.
* 🇫🇷 Convert amounts to French words.
* 🇬🇧 Convert amounts to English words.
* 💰 Supports **Algerian Dinar (DZD)**.
* 🪙 Supports **Centimes**.
* 🔢 Supports large numbers.
* 📦 Simple and reusable `uNumberToWords.pas` unit.
* 🖥️ Includes a simple Delphi demo interface.
## 🚀 Usage
Add `uNumberToWords.pas` to your Delphi project and use:
```pascal
uses
uNumberToWords;
```
Then call:
```pascal
MoneyToWords('1079.75', 'AR');
```
### Arabic
```text
ألف و تسعة و سبعون دينار جزائري و خمسة و سبعون سنتيمًا
```
### French
```pascal
MoneyToWords('1079.75', 'FR');
```
### English
```pascal
MoneyToWords('1079.75', 'EN');
```
## 📌 Function
```pascal
function MoneyToWords(
const AValue: string;
const ALanguage: string
): string;
```
### Supported languages
| Language | Code |
| -------- | ---- |
| Arabic | `AR` |
| French | `FR` |
| English | `EN` |
## 🧪 Examples
```pascal
MoneyToWords('1.00', 'AR');
```
```text
دينار جزائري
```
```pascal
MoneyToWords('2.50', 'AR');
```
```text
ديناران جزائريان و خمسون سنتيمًا
```
```pascal
MoneyToWords('1079.75', 'AR');
```
```text
ألف و تسعة و سبعون دينار جزائري و خمسة و سبعون سنتيمًا
```
## 📁 Project Structure
```text
NumberToWords/
│
├── Project2.dpr
├── Project2.dproj
├── Unit2.pas
├── Unit2.dfm
├── uNumberToWords.pas
└── README.md
```
* **`uNumberToWords.pas`** — Main reusable unit containing `MoneyToWords`.
* **`Unit2.pas`** — Demo interface for testing the function.
* **`Project2.dpr`** — Delphi project file.
* **`Project2.dproj`** — Delphi project configuration.
## 🛠️ Requirements
* Delphi XE or later.
* No external libraries are required.
## 📄 License
This project i …