Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: How to convert number format


From   "Dudekula, Anwar" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: How to convert number format
Date   Fri, 4 Nov 2011 03:20:05 +0000

HI , 

I apologize for the asking this question

I have a list of numbers as observations for a variable like 

20
43
200
298
888
4619
5311
5312
20210
20218

How do I convert the numbers more than 3 digits(> 999) to have decimal after the third digit , i.e., 
Convert  4619 -->461.9;convert 5311-->531.1; 20210-->201.10;20218-->202.18  
and leave the two digit and three digit numbers as they are i.e., leave 20,43,298 etc as they are 
 
Thanks 
Anwar 


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index