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: 3 months ago
JSON representation
Numbers 2 Words Library for English And Turkish
- Host: GitHub
- URL: https://github.com/netologist/numbers-to-words
- Owner: netologist
- Created: 2022-05-05T22:07:43.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-07T17:51:30.000Z (about 3 years ago)
- Last Synced: 2025-01-20T16:53:27.013Z (4 months ago)
- Topics: golang, golang-library, number, word
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```