Skip to content

vinbyte/num2words

Repository files navigation

Number to Words

CircleCI Coverage Status Go Reference

Golang package to convert number into words. For example : 148 become one hundred forty-eight. Inspired by this python library num2words.

Install

Run go get -u github.com/vinbyte/num2words

Usage

package main

import (
	"fmt"
	"github.com/vinbyte/num2words"
)

func main() {
	n2w := num2words.New("en")
	res := n2w.NumberToWord(349)
	fmt.Println(res)
}
//output : three hundred forty-nine

Test

Run go test -v

About

Golang package to convert number into words

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages