Skip to content

A small dependency free library to turn spell out numbers up to uint64.

License

Notifications You must be signed in to change notification settings

daniellowtw/go-spell-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-spell-number

A small dependency free library to turn spell out numbers. It supports positive numbers up to uint64.

Usage

package main

import (
    "github.com/daniellowtw/go-spell-number"
    "math"
)

func main() {
    spell.Number(123) // one hundred twenty three
    spell.Number(4123) // four thousand one hundred twenty three
    spell.Number(1e6) // one million
    spell.Number(math.MaxInt64) // nine quintillion ...
    spell.LargeNumber(math.MaxUint64) // eighteen quintillion ...
}

About

A small dependency free library to turn spell out numbers up to uint64.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages