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

Number-to-words in 69 languages for Dart. Supports int, double, BigInt, Decimal, and numeric strings. Includes currency, year formatting, and locale-specific options.

0.0.3 #

  • Enhanced core conversion logic, resulting in improved output accuracy for many numbers and languages.
  • Improved and expanded the test suite.
  • Note: While accuracy is improved, the library is still under development and may not be 100% accurate for all complex cases or languages (as detailed in note.md).

0.0.2 #

  • fix: Resolved pub.dev static analysis issues.
  • chore: Improved overall code health and formatting based on linter suggestions.

0.0.1 #

  • 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
150
points
143
downloads

Publisher

unverified uploader

Weekly Downloads

Number-to-words in 69 languages for Dart. Supports int, double, BigInt, Decimal, and numeric strings. Includes currency, year formatting, and locale-specific options.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

decimal

More

Packages that depend on num2text