Skip to content

pyrotag/terbilang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terbilang

PkgGoDev

Golang library to convert Number to Word in Bahasa/Indonesia.

This repository inspiration is based from https://github.com/develoka/angka-terbilang-js

Install

go get -u github.com/pyrotag/terbilang

Usage

import (
    terbilang "github.com/pyrotag/terbilang"
)

wordResultFromString := terbilang.FromString{"1999"}.ToWord()
// Result 
// Seribu sembilan ratus sembilan puluh sembilan

wordResultFromInt := terbilang.FromInt{1525000}.ToWord()
// Result 
// Satu juta lima ratus dua puluh lima ribu

wordResultFromInt := terbilang.FromFloat{153.192311}.ToWord()
// Result 
// Seratus lima puluh tiga koma satu sembilan dua tiga satu satu


About

Golang library to convert Number to Word in Bahasa/Indonesia.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages