Update README
This commit is contained in:
@@ -5,8 +5,6 @@ Documentation of [ntext-rs](https://uttarayan21.github.io/ntext-rs) generated by
|
|||||||
A rust library to get numbers (u32) as words
|
A rust library to get numbers (u32) as words
|
||||||
|
|
||||||
`12345 ` -> `twelvethousandthreehundredfortyfive`
|
`12345 ` -> `twelvethousandthreehundredfortyfive`
|
||||||
`81123` -> `eightyonethousandonehundredtwentythree`
|
|
||||||
`12` -> `twelve`
|
|
||||||
|
|
||||||
Add to cargo.toml
|
Add to cargo.toml
|
||||||
|
|
||||||
@@ -21,11 +19,13 @@ Example program
|
|||||||
extern crate ntext;
|
extern crate ntext;
|
||||||
use ntext::to_text;
|
use ntext::to_text;
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("{}",to_text(12345));
|
println!("{}",to_text!(12345));
|
||||||
|
println!("{}",to_text!(12345," "));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
which should output
|
which should output
|
||||||
`twelvethousandthreehundredfortyfive`
|
`twelvethousandthreehundredfortyfive`
|
||||||
|
`twelve thousand three hundred forty five`
|
||||||
|
|
||||||
I will probably add formatting the text later
|
I will probably add formatting the text later
|
||||||
|
|||||||
Reference in New Issue
Block a user