Skip to content

The go package for converting numbers to readable text

License

Notifications You must be signed in to change notification settings

sujamess/numconword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numconword Coverage Status Go Report Card Go Reference

What is numconword?

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

Quick start

  1. Installation
go get -u github.com/sujamess/numconword
  1. 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)
}

Contribution

I'll really appreciate contributions! This library has a lot of things to work on (translation, performance improvement, add more test cases, etc.)