terbilang-spelling

0.0.9 • Public • Published

terbilang-spelling

Convert numbers to Indonesian spelling. Supports floating point

How to install

  npm install terbilang-spelling 

How to use

  var terbilang = require('terbilang-spelling');
 
  console.log(terbilang(123));                // seratus dua puluh tiga
  console.log(terbilang(2312.009170000));     // dua ribu tiga ratus dua belas koma nol nol sembilan satu tujuh
  console.log(terbilang(123456789987654321)); // seratus dua puluh tiga kuadriliun empat ratus lima puluh enam triliun tujuh ratus delapan puluh sembilan miliar sembilan ratus delapan puluh tujuh juta enam ratus lima puluh empat ribu tiga ratus dua puluh

Naming Standards

1.000.000 (6) = 1 Juta.
1.000.000.000 (9) = 1 Milyar.
1.000.000.000.000 (12) = 1 Triliun.
1.000.000.000.000.000 (15) = 1 Kuadriliun.
1.000.000.000.000.000.000 (18) = 1 Kuantiliun.

Limitation

Handles up to 'kuantiliun'

Package Sidebar

Install

npm i terbilang-spelling

Weekly Downloads

6

Version

0.0.9

License

MIT

Last publish

Collaborators

  • aristo_sh