num2text 0.0.1 copy "num2text: ^0.0.1" to clipboard
num2text: ^0.0.1 copied to clipboard

A versatile Dart library for converting numbers (integers, decimals, BigInt) into their word representations across 69 languages, with support for currency, years, and language-specific options.

0.0.1 2025-18-04 #

  • Initial release of the num2text library.
  • Core functionality for converting numbers (int, double, BigInt, String, Decimal) to words.
  • Support for 69 languages via the Lang enum.
  • Language-specific options classes (e.g., EnOptions, ViOptions) for customization.
  • Support for:
    • Cardinal number conversion (up to 24 digits).
    • Currency formatting (currency: true option and CurrencyInfo).
    • Year formatting (format: Format.year).
    • Decimal number formatting (integer and fractional parts).
    • Negative number handling.
    • Large numbers using standard scales (thousand, million, billion, etc.).
  • Basic error handling and optional fallback string.
  • Includes utility functions for number normalization.
  • Comprehensive tests for each supported language located in test/lang/.
3
likes
0
points
143
downloads

Publisher

unverified uploader

Weekly Downloads

A versatile Dart library for converting numbers (integers, decimals, BigInt) into their word representations across 69 languages, with support for currency, years, and language-specific options.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

decimal

More

Packages that depend on num2text