Convert number like 42
to forty-two
Example usage:
rust
use num2words::num2words;
assert_eq!(num2words!(42), Ok(String::from("forty-two")));
The app can also be run via a command-line interface.
Example:
sh
$ num2words 42
forty-two
$ num2words 10 --to EUR
ten euros
You can download the app via the following command:
sh
$ cargo install num2words
For more information about the usage of num2words
please refers to the
docs or via the following command:
sh
$ num2words --help
This library is widely inspired by Savoir-faire Linux's Python lib.
Warning: this lib is not usable at its current state, we would recommend you come back later.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.