Skip to content

v0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Ballasi Ballasi released this 27 Mar 16:44
· 41 commits to master since this release
a266d71

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.