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 hashes)