This lib converts the number (currently just int
) to words (one, two...)
The implementation is currently just in english, but more will be added (need refactor a little bit)
import numToWord
doAssert 1.toWord == "one"
doAssert 123_456.toWord == "one hundred, twenty three thousand, four hundred, fifty six"
Minimum Nim version is 1.2.2
Please choice one installation method:
- Automatically with nimble
nimble install https://github.com/thisago/numToWord
Or
- Manually
git clone https://github.com/thisago/numToWord cd numToWord/ nimble install
A online docs is hosted in Github Pages
MIT