Convert zh-TW numbers to Arabic numerals
Project description
zhTW2Num
Summary
- This tool is for converting the number texts of Traditional Chinese into float
- Float value is supported
How to use it
text = '金額總共兩千零二十元'
res = zhTW2Num(text)
print(res) # 2020.0
text = '長度二點零五公分
res = zhTW2Num(text)
print(res) # 2.05
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
zhTW2Num-1.0.1.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file zhTW2Num-1.0.1.tar.gz
.
File metadata
- Download URL: zhTW2Num-1.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37f92f61652ac595f3bc836df7f4e454ac90d40ed5ed073c2e3f48af36c29528 |
|
MD5 | 3b1f71846abd149808c18282b4e2cfec |
|
BLAKE2b-256 | e4fb8fd0c1a1907b60b9f9e14d6bf5cb876f162e5f4506e9034d069dbff71592 |
File details
Details for the file zhTW2Num-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: zhTW2Num-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb9d7c3a72b6928aec49135d9e4e416689fe9110703eea8c451360ab7f1f38a |
|
MD5 | 62bcd5d30ac0e847d41afd58eaed5217 |
|
BLAKE2b-256 | 0071f80d58000ebbab8a8aa8d31e2ddfb1403ca09590d9c27e1f2831560d5a17 |