Skip to main content

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


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)

Uploaded Source

Built Distribution

zhTW2Num-1.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

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