Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Shortscale ¶
Shortscale converts numbers into English words. Supports positive integers from 0 to 999_999_999_999_999_999. Larger values return "(big number)".
Example ¶
package main import ( "fmt" shortscale "github.com/jldec/shortscale-go" ) func main() { fmt.Println(shortscale.Shortscale(420_000_999_015)) }
Output: four hundred and twenty billion nine hundred and ninety nine thousand and fifteen
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.