Skip to content

ben60523/zhTW2Num

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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