Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: RE: Displaying values less than one with a zero in front of the comma


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: RE: Displaying values less than one with a zero in front of the comma
Date   Mon, 21 Feb 2005 22:46:18 -0000

In general a macro is a character string.  
It could contain "2.78128" or "Fred Wolfe", 
etc. 

I guess you want to able to say something 
like 

. set localformat %7.2f 

with also a stipulation that that be ignored 
whenever the content is not numeric. 
Is that right? 

My guess is that StataCorp could 
do that fairly easily. I just don't 
think it would be particularly useful. 

Nick 
n.j.cox@durham.ac.uk 

Fred Wolfe
 
> While we are on the subject, I'd like to see the ability to 
> specify the 
> format of macros generally (globally), with respect to 
> leading 0s, so that 
> one doesn't have to format each one individually.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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