Skip to content

uttarayan21/ntext-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntext-rs

Documentation Rust Build Test

Documentation of ntext-rs generated by cargo doc.

A rust library to get numbers (usize) as words

12345 -> Twelve Thousand,Three Hundred,Forty-Five

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));
}

which should output
Twelve Thousand,Three Hundred,Forty-Five

Check the documentation which has more examples and is usually up to date.