2021-03-08 01:03:19 +05:30
2021-03-08 01:03:19 +05:30
2021-03-06 05:06:41 +05:30
2021-03-07 00:19:13 +05:30
2021-03-06 05:06:41 +05:30
2021-03-07 00:19:13 +05:30

ntext

A rust library to get numbers (u32) as words

12345 -> twelvethousandthreehundredfortyfive
81123 -> eightyonethousandonehundredtwentythree
12 -> twelve

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
twelvethousandthreehundredfortyfive

I will probably add formatting the text later

S
Description
A library to convert numbers to words in rust
Readme GPL-3.0 881 KiB
Languages
Rust 100%