convert numbers into Indonesian string called terbilang
Add this to your gemfile
gem "terbilang"
then execute
bundle install
Or
gem install terbilang
Terbilang.convert(150050000) # seratus lima puluh juta lima puluh ribu
If you use Rails don't forget to restart your server
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request