[][src]Function say_number::say

pub fn say(n: u64) -> String

Says a number in English. Attention: in future releases, this function will automatically select the language to use based on the user's setting on his/her machine.

Examples

assert_eq!(say_number::say(416), "four hundred and sixteen".to_string());
assert_eq!(say_number::say(514), "five hundred and fourteen".to_string());