wordstonumbers

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

wordstonumbers

Wordstonumbers.dart #
Wordstonumbers.dart is a simple dart package that converts a string of simple worded numbers into digits (e.g one hundred -> 100).
Usage #
wordsToNumbers('one hundred twenty') // -> 120
'one hundred twenty'.w2n() //-> 120

num number = wordsToNumbers('one hundred and three')
print(number) // -> 103

wordsToNumbers('one million eight hundred thousand and forty') // -> 1800040

'one million'.w2n() // -> 1000000
copied to clipboard
If you would like to add to this package feel free to open a PR with your additions. I'm always looking for a way to better my packages. I hope this helps out a few of you.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.