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

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


From   "Jann, Ben" <ben.jann@soz.gess.ethz.ch>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Displaying values less than one with a zero in front of the comma
Date   Mon, 21 Feb 2005 22:12:25 +0100

There has been some discussion about displaying the 0 in front
of the decimal point for numbers in (-1,1).

Seb Buechte asked:
> is there anyway to force stata to generally display 0.5 
> instead of .5 ? 

Thomas J. Steichen answered:
> My experience is that 
> g formats do not put the leading zero 
> f formats        put the leading zero

Thomas is right, of course. However, I think that it would
be great to be able to choose whether to print the leading 
zero or not in general (i.e. to be able to print the zero or 
not in both the g and the f format). 

For example, -estout- provides the -nolz- option ("no 
leading zero") to get rid of the leading zeros in the f 
format. I think it would be great if such functionality be 
provided via -%fmt-.

ben

*
*   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