Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathan-cav/number-to-word-converter
A script to convert positive integers < 4 billion to words. Feel free to fork, optimise and refactor.
https://github.com/nathan-cav/number-to-word-converter
rust rust-lang rust-language rustlang
Last synced: 3 days ago
JSON representation
A script to convert positive integers < 4 billion to words. Feel free to fork, optimise and refactor.
- Host: GitHub
- URL: https://github.com/nathan-cav/number-to-word-converter
- Owner: Nathan-Cav
- Created: 2021-12-17T10:19:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T00:57:11.000Z (4 months ago)
- Last Synced: 2024-11-22T03:06:54.025Z (2 months ago)
- Topics: rust, rust-lang, rust-language, rustlang
- Language: Rust
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Number to Word Converter
A random project to create a Rust script that currently prints 1 to 1 million as words. I wasn't sure if there was any sample code that implements this so I thought I would put this up here for people to use. It could be interesting to adapt and publish this as a rust library at some point for the heck of it.
![Output from number to word converter](./assets/print-numbers-as-words.png)
This is probably not the fastest and most efficient way of implementing this but it would be interesting to see how much the logic can be optimised and improved.