num2en
This is a crate with functions for converting any integer or decimal number below 2128 (about 340 undecillion) to words. It supports converting to cardinal and ordinal numbers.
Functions
To convert any integer n of type X to cardinal number words, call X_to_words(n).
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
To convert any unsigned integer n of type X to ordinal number words, call
X_to_ord_words(n).
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
To convert any float f of type Y to number words, call Y_to_words(f).
assert_eq!;
assert_eq!;
To convert a string representation of a number to number words, call str_to_words.
assert_eq!;
To spell all digits in a string of digits individually, call str_digits_to_words.
assert_eq!;
This crate has been thoroughly tested, but if you find any function working incorrectly for some input, please open an issue on Github.