zhTW2Num

Convert zh-TW numbers to Arabic numerals


License
MIT
Install
pip install zhTW2Num==1.0.1

Documentation

zhTW2Num

Upload Python Package

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