Quantcast
Viewing all articles
Browse latest Browse all 50

Number conversion into words

I am working on a command that will convert/translate a number into a word. I am using a map to convert each number/character into a word.

\zztable{\zzrow{zero}{0}\zzrow{one}{1}\zzrow{two}{2}\zzrow{three}{3}\zzrow{four}{4}\zzrow{five}{5}\zzrow{six}{6}\zzrow{seven}{7}\zzrow{eight}{8}\zzrow{nine}{9}}

However, it works fine when the number is in between 0 and 9. However, It does not work beyond 9 and I cannot manually map billion numbers. What is the automatic way to convert any number into a word. For example, 1022 should be “One Hundred and Twenty Two” NOT “One Zero Two Two”. Thank you. [I am using Xetex]


Viewing all articles
Browse latest Browse all 50

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>