say-number

crates.io

Library to say numbers in English.

Quickstart

Add the following to your Cargo.toml file.

toml [dependencies] say-number = "0.1"

Examples

rust println!("The number is {}.", say_number::say(42)); assert_eq!(say_number::say(514), "five hundred and fourteen".to_string());