spell_out_numbers 1.0.0 copy "spell_out_numbers: ^1.0.0" to clipboard
spell_out_numbers: ^1.0.0 copied to clipboard

A small project to convert numbers to words.

Spell Out Numbers #

License Dart

Features #

Writes put the name of a number given in different languages. Currently only English is supported, but in the future I will add more languages. If anyone is interested in helping me with that, feel free to contact me / open an issue.

Language Support #

  • ✅ English
  • ❌ German / Deutsch
  • ❌ Spanish / Español

Usage #

There is one abstract class (LanguageNumberScheme) that all other classes inherit from. This class and all classes extending this one provide amongst others the following methods and getters:

  • toWord(num number): converts the number given into words
  • num get maxNumber;: the largest number supported by the scheme
  • int get maxDecimals;: the maximum number of decimal values

Examples #

LanguageNumberScheme scheme = EnglishNumberScheme();

print(scheme.toWord(10));
// ten
LanguageNumberScheme scheme = EnglishNumberScheme();

print(scheme.toWord(-1398));
// minus one thousand three hundred ninety eight
4
likes
130
points
333
downloads

Publisher

unverified uploader

Weekly Downloads

A small project to convert numbers to words.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

intl, tuple

More

Packages that depend on spell_out_numbers