Files
ntext-rs/README.md
T
Uttarayan Mondal 232f3abccc Update README
2021-03-08 18:48:11 +05:30

618 B

ntext-rs

Documentation of ntext-rs generated by cargo doc.

A rust library to get numbers (u32) as words

12345 -> twelvethousandthreehundredfortyfive

Add to cargo.toml

[dependencies]
ntext = { git = "https://github.com/uttarayan21/ntext" }

Example program

extern crate ntext;
use ntext::to_text;
fn main() {
    println!("{}",to_text!(12345));
    println!("{}",to_text!(12345," "));
}

which should output
twelvethousandthreehundredfortyfive
twelve thousand three hundred forty five

I will probably add formatting the text later