# README
num2words
num2words - Numbers to words converter in Go (Golang)
Usage
First, import package num2words
import github.com/divan/num2words
Convert number
str := num2words.Convert(17) // outputs "seventeen"
...
str := num2words.Convert(1024) // outputs "one thousand twenty four"
...
str := num2words.Convert(-123) // outputs "minus one hundred twenty three"
Convert number with " and " between number groups:
str := num2words.ConvertAnd(514) // outputs "five hundred and fourteen"
...
str := num2words.ConvertAnd(123) // outputs "one hundred and twenty three"
# Functions
Convert converts number into the words representation.
ConvertAnd converts number into the words representation with " and " added between number groups.
ConvertFloat converts float number into words representation.
ConvertFloatAnd converts float number into words representation with " and " added between number groups.
# Constants
No description provided by the author
# Type aliases
Precision represents the number of decimal places to convert -1 means automatic precision (removes trailing zeros).