Skip to content

A Flutter package for converting numbers to Arabic and English words.

License

Notifications You must be signed in to change notification settings

moatasem-alhilali/number_words_reader

Repository files navigation

Number Words Reader

A Flutter package for converting numbers to Arabic and English words.

To use this package, add number_words_reader as a dependency in your pubspec.yaml file.

Installation

dependencies:
  number_words_reader: ^1.0.0

Then, run flutter pub get to fetch the package.

import

import 'package:number_words_reader/number_words_reader.dart';

Usage Arabic

void main() {
   NumberWordsReader.convertToArabic(4500);
  // Output: "أربعة آلاف وخمسمائة"
}

🔸 Usage English

void main() {

  NumberWordsReader.convertToEnglish(4500);
  // Output: "Four thousand five hundred"

  NumberWordsReader.convert(55);
  //Output:'fifty-five'

  NumberWordsReader.convert(100000);
  //Output:'one hundred thousand'

  NumberWordsReader.convert(13578921);
  //Output:'thirteen million five hundred seventy-eight thousand nine hundred twenty-one'

  NumberWordsReader.convert(123456789);
  //Output:'one hundred twenty-three million four hundred fifty-six thousand seven hundred eighty-nine'

}

Contributing Feel free to contribute to this package by opening issues or submitting pull requests on the GitHub repository.

License This package is licensed under the MIT License - see the LICENSE file for details.

Feel free to contribute to this package by opening issues or submitting pull requests on the GitHub repository.

About

A Flutter package for converting numbers to Arabic and English words.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published