An open API service indexing awesome lists of open source software.

https://github.com/daniellowtw/go-spell-number

A small dependency free library to turn spell out numbers up to uint64.
https://github.com/daniellowtw/go-spell-number

convert-number-to-english-words convert-numbers-to-words go golang spell

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# go-spell-number

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

# Usage
```go
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 ...
}
```