Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: writing out numbers ("two" instead of "2")


From   "David Elliott" <[email protected]>
To   [email protected]
Subject   Re: st: writing out numbers ("two" instead of "2")
Date   Fri, 9 Jan 2009 12:05:07 -0400

For non-zero positive digits this is pretty easy - you could do something like:

local test 2
di "`:word `test' of one two three four five six seven eight nine'"

Beyond that you would need to use -cond(,,)- or create an ado to
return a converted string.

-- 
David Elliott
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index