Skip to main content

Easy converter between Kanji-Number and Integer

Powered by Yamato Nagata

GitHub

Can Convert Number up to 10 ** 28 - 1

from kanjize import int2kanji, kanji2int, Number

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

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

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

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

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

print(int2kanji(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千

Download files

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

Source Distribution

kanjize-0.2.1.tar.gz (4.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: kanjize-0.2.1.tar.gz
  • Upload date:
  • Size: 4.7 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-0.2.1.tar.gz
Algorithm Hash digest
SHA256 20700089bcafee692abf127ecdb3f3b4aaaafe380427fc177f8f19dbed06f70d
MD5 988a1877e388376164e1a1dcf86cee06
BLAKE2b-256 954470059875f9c8166bef89321412cabc170d1af36fe6a259c5457b29884b30

See more details on using hashes here.

Release history Release notifications | RSS feed

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

This release

0.2.1 This release

1 file

0.2.0

1 file

0.1.0

1 file

0.0.2

1 file

Supported by

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