Documentation ¶
Overview ¶
Package num2words implements numbers to words converter.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
Convert converts number into the words representation.
Example ¶
fmt.Println(num2words.Convert(11)) fmt.Println(num2words.Convert(123)) fmt.Println(num2words.Convert(-99))
Output: eleven one hundred twenty-three minus ninety-nine
func ConvertAnd ¶
ConvertAnd converts number into the words representation with " and " added between number groups.
Example ¶
fmt.Println(num2words.ConvertAnd(123)) fmt.Println(num2words.ConvertAnd(514))
Output: one hundred and twenty-three five hundred and fourteen
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.