v0.2.0
Pre-release
Pre-release
What's new?
- Usage of builder pattern rather than macros
Examples:
use num2words::*;
assert_eq!(
Num2Words::new(42).lang(Lang::English).to_words(),
Ok(String::from("forty-two"))
);
assert_eq!(
Num2Words::new(42).output(Output::Ordinal).to_words(),
Ok(String::from("forty-second"))
);
assert_eq!(
Num2Words::new(42.01).currency(Currency::DOLLAR).to_words(),
Ok(String::from("forty-two dollars and one cent"))
);
- Update of call to
$ num2words --help
- Addition of call
$ num2words --version
- Complete overhaul of the docs and the README.md file
Full changelog
Here is the full changelog.