Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/netologist/numbers-to-words
- Owner: netologist
- Created: 2022-05-05T22:07:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-07T17:51:30.000Z (over 2 years ago)
- Last Synced: 2023-07-14T06:07:09.176Z (over 1 year ago)
- Topics: golang, golang-library, number, word
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 3
- 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
```