ethio_numbers 0.0.3
ethio_numbers: ^0.0.3 copied to clipboard
this package used to convert Arabic number to Amharic or Afaan Oromo text upto decillion (10^33) number.
ethio_numbers package used to convert Arabic number to Amharic or Afaan Oromo text upto decillion (10^33) number.
Features #
- Number to Amharic Text.
- Number to Afaan Oromo Text.
- Monetize Number to Amharic Text.
Getting started #
you can add the package using the following command
flutter pub add ethio_numbers
or
dart pub add ethio_numbers
Usage #
Import the package in your Dart code:
import 'package:ethio_numbers/ethio_numbers.dart';
convert the number using .toAmharicText() or .toAfaanOromoText() extension.
print(7023.toAmharicText()); //Output: ሰባት ሺ ሀያ ሶስት
print(125.toAfaanOromoText()); //Output:dhibba digdamii shan
for double values you can add fractionDigits and monetizeValue named parameter to get additional feature.
double money = 34.50;
money.toAmharicText(monetizeValue: true); //Output: ሰላሳ አራት ብር ከ ሃምሳ ሳንቲም
double n = 524.53523;
n.toAmharicText(); //Output: አምስት መቶ ሃያ አራት ነጥብ አምስት ሶስት አምስት ሁለት ሶስት
n.toAmharicText(fractionDigits: 2); //Output: አምስት መቶ ሃያ አራት ነጥብ አምስት አራት
Contributions #
Contributions to the ethio_numbers are welcomed and encouraged! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.