terbilang
terbilang adalah sebuah alat yang berfungsi untuk mengubah angka menjadi huruf terbilang. terbilang ditulis dengan Python dan dapat menerima masukan angka hingga 72 digit (999+ miliar novemdesiliun).
Instalasi
pip install terbilang
Penggunaan
terbilang dapat dijalankan langsung sebagai skrip Python:
python -m terbilang
Jika anda adalah pengembang, terbilang juga bisa digunakan sebagai modul:
from terbilang import Terbilang
t = Terbilang()
t.parse('1.000,00')
print(t.getresult()) # seribu koma nol nol
t.parse('1001')
print(t.getresult()) # seribu satu
t.parse('121001')
print(t.getresult()) # seratus dua puluh satu ribu satu
Standar pemisah desimal yang digunakan oleh terbilang adalah koma (,), ini bisa diganti pada saat inisiasi:
t = Terbilang(sep='.')
print(t.parse('1000.456').getresult()) # seribu koma empat lima enam
terbilang dibuat agar memiliki jangkauan yang lebar, tetapi diharapkan dapat membaca angka dengan lebih luwes. Sebagai contoh, "1000 triliun" tidak dibaca sebagai "satu kuadriliun" tetapi "seribu triliun". Sedangkan "1000 juta" tentu akan dibaca sebagai "satu miliar". terbilang akan menampilkan tanda koma jika bilangan sudah mencapai triliunan atau lebih untuk meningkatkan keterbacaan:
t.parse('19000000000000000000071000002011000000')
print(t.getresult()) # sembilan belas undesiliun, tujuh puluh satu ribu triliun, dua miliar sebelas juta
Metadata
Release files for terbilang 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| terbilang-0.0.6.tar.gz | 3.4 kB | Without provenance | Details for terbilang-0.0.6.tar.gz |
Release files / terbilang-0.0.6.tar.gz
| Download URL | terbilang-0.0.6.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d09bdf1f641b701a344d0428e86782587352663c80e4797bdf5febf7a63f264
|
|
BLAKE2b-256 checksum How to use checksums |
166c7eb267334ae42313c654cd295ec76da7c72e501c1f10cd751b40f89f74c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Security for terbilang 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.