Skip to main content

Easy converter between Kanji-Number and Integer

Project description

Easy converter between Kanji-Number and Integer

Powered by Yamato Nagata

GitHub

Can Convert Number up to 10 ** 72 - 1

from kanjize import number2kanji, kanji2number, Number

print(number2kanji(58076099))
    # 五千八百七万六千九十九

print(kanji2number("五千八百七万六千九十九"))
    # 58076099

print(kanji2number("223兆4千億4256万6千"))
    # 223400042566000

print(kanji2number("223兆4000億4256万6000"))
    # 223400042566000

print(number2kanji(223400042566000, style="mixed", kanji_thousand=False))
    # 223兆4000億4256万6000

print(number2kanji(223400042566000, style="mixed"))
    # 223兆4千億4256万6千

print((Number.from_kanji("223兆4千億4256万6千") * Number(2.3)).to_kanji(style="mixed"))
    # 446兆8千億8513万2千

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kanjize-1.4.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kanjize-1.4.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file kanjize-1.4.0.tar.gz.

File metadata

  • Download URL: kanjize-1.4.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for kanjize-1.4.0.tar.gz
Algorithm Hash digest
SHA256 71665d26c1f2e1561ff3bef93d732781b1795c0a6fb6ecd7532f1781ff6ac3a2
MD5 55bdaf187e9ba808ecfed7e304886f0a
BLAKE2b-256 8588aefaa06f95dca8ce703096880c9e7a396962e82dc5b5aaf764d4345633d4

See more details on using hashes here.

File details

Details for the file kanjize-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: kanjize-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for kanjize-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3640c5b5a58fa6f873168f3cdc430e33e76731f2358e9c50be7e8b77bd381a19
MD5 cd7a9a25abac4e7e0fa61c362fff9698
BLAKE2b-256 6699101e293cc41ef6b07c7373590299ea936c9ebd3002a975785eb2e562c2ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page