Skip to content

Persian text -> integer, ineteger -> text converter

License

Notifications You must be signed in to change notification settings

JKhakpour/petit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

petit

Persian text -> integer, ineteger -> text converter

>>> from petit import text_to_num, num_to_text, num_to_ordinal
>>> text_to_num("منفی یک")
-1
>>> num_to_text(-123)
'منفی یکصد و بیست و سه'
>>> num_to_ordinal(23)
'بیست و سوم'

Please open an issue if there are any wrong conversions.

About

Persian text -> integer, ineteger -> text converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages