Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/netologist/numbers-to-words

Numbers 2 Words Library for English And Turkish
https://github.com/netologist/numbers-to-words

golang golang-library number word

Last synced: 4 days ago
JSON representation

Numbers 2 Words Library for English And Turkish

Awesome Lists containing this project

README

        

# Numbers to Words for English and Turkish Languages

### Example for Turkish
```golang
word, _ := n2w.ToTurkishWords(9876543210987654)
fmt.Println(word)
// DOKUZ KATTRİLYON SEKİZ YÜZ YETMİŞ ALTI TRİLYON BEŞ YÜZ KIRK ÜÇ MİLYAR İKİ YÜZ ON MİLYON DOKUZ YÜZ SEKSEN YEDİ BİN ALTI YÜZ ELLİ DÖRT
```

### Example for English
```golang
word, _ := n2w.ToEnglishWords(9876543210987654)
fmt.Println(word)
// NINE QUADRILION EIGHT HUNDERED SEVENTY SIX TRILLION FIVE HUNDERED FORTY THREE BILLION TWO HUNDERED TEN MILLION NINE HUNDERED EIGHTY SEVEN THOUSAND SIX HUNDERED FIFTY FOUR
```