Easy converter between Kanji-Number and Integer
Project description
Easy converter between Kanji-Number and Integer
Powered by Yamato Nagata
Can Convert Number up to 10 ** 72 - 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千
Project details
Release history Release notifications | RSS feed
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.0.0.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file kanjize-1.0.0.tar.gz
.
File metadata
- Download URL: kanjize-1.0.0.tar.gz
- Upload date:
- Size: 5.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c0da20d8f70be7d24c783abcd3f2f961d42939488c41f5b250b0025443a5150c
|
|
MD5 |
b00892b4cea5b964ad98b763489caf3b
|
|
BLAKE2b-256 |
aca71e645edb11b71320e6731593a1a2168e6f3ca0f0e4ddcd5c72a8240dfa1d
|
File details
Details for the file kanjize-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: kanjize-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
915255d795ffd9a32f03f80a6077842b02c512e57b65371f969a59a18a1f3e83
|
|
MD5 |
a86f551f71be129bd0a0aa74d4e3a58c
|
|
BLAKE2b-256 |
d68f901ace614c7b1e553f8da554beed5545f92c2bc6c9d5f1574e9e617f5270
|