numconword is a Go library for converting any type of numbers into readable words
- numconword prioritizes big number handling — You could convert numbers as big as you want
- Installation
go get -u github.com/sujamess/numconword
- Let's convert!
package main
import (
"fmt"
"github.com/sujamess/numconword"
)
func main() {
readableWords, err := numconword.ConvertFloat64(123456.78)
if err != nil {
// handle error
}
// one hundred twenty three thousand fifty six point seventy eight
fmt.Println(readableWords)
}
I'll really appreciate contributions! This library has a lot of things to work on (translation, performance improvement, add more test cases, etc.)