Skip to content

parithiban/numtowords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numtowords

GoDoc Go Report Card Build Status codecov.io

GitHub contributors Last Commit

This is a utility package written in go which is used to convert the number to words.

Installation

This requires Go version 1.11 or later.

go get -u github.com/parithiban/numtowords

Example

words  := numtowords.Transform(1234) //output: "one thousand two hundred thirty four"
words  := numtowords.Transform(100000000000) //output: "one hundred billion"
words  := numtowords.Transform(000000000) //output: "zero"
words  := numtowords.Transform(1100100100300800112) //output: "one quintillion one hundred quadrillion one hundred trillion one hundred billion three hundred million eight hundred thousand one hundred twelve"

Playground Link

About

Convert number to words

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published