Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.