Skip to content

thisago/numToWord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numToWord

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)


Usage

import numToWord

doAssert 1.toWord == "one"
doAssert 123_456.toWord == "one hundred, twenty three thousand, four hundred, fifty six"

Installation

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

Docs

A online docs is hosted in Github Pages


License

MIT

Releases

No releases published

Sponsor this project

Packages

 
 
 

Languages