Documentation
¶
Overview ¶
Package num2words implements numbers to words converter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var English = Lang{ Locale: "en", SmallNumbers: []string{ "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", }, Tens: []string{ "", "", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety", }, Hundreds: []string{ "", "one hundred", "two hundred", "three hundred", "four hundred", "five hundred", "six hundred", "seven hundred", "eight hundred", "nine hundred", }, ScaleNumbers: []string{ "", "thousand", "million", "billion", }, And: "and", Separator: "-", Minus: "minus", }
View Source
var Spanish = Lang{ Locale: "en", SmallNumbers: []string{ "cero", "uno", "dos", "tres", "cuatro", "cinco", "seis", "siete", "ocho", "nueve", "diez", "once", "doce", "trece", "catorce", "quince", "dieciséis", "diecisiete", "dieciocho", "diecinueve", "veinte", "veintiuno", "veintidós", "veintitrés", "veinticuatro", "veinticinco", "veintiséis", "veintisiete", "veintiocho", "veintinueve", }, Tens: []string{ "", "", "", "treinta", "cuarenta", "cincuenta", "sesenta", "setenta", "ochenta", "noventa", }, Hundreds: []string{ "cien", "ciento", "doscientos", "trescientos", "cuatrocientos", "quinientos", "seiscientos", "setecientos", "ochocientos", "novecientos", }, ScaleNumbers: []string{ "", "mil", "millón", "billón", }, And: "y", Separator: " y ", Minus: "menos", }
Functions ¶
func ConvertAnd ¶
ConvertAnd converts number into the words representation with " and " added between number groups.
Types ¶
Click to show internal directories.
Click to hide internal directories.