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]

RE: st: doubt on the output format %w.dg


From   Grace Jessie <[email protected]>
To   <[email protected]>
Subject   RE: st: doubt on the output format %w.dg
Date   Sat, 12 Mar 2011 12:13:52 +0000

Why no replies? Is my question too easy?
I am sorry if anything wrong. However, I really do not understand it.
 
Grace

> From: [email protected]
> To: [email protected]
> Subject: st: doubt on the output format %w.dg
> Date: Fri, 11 Mar 2011 13:45:43 +0000
> 
> Dear statalists,
> I can not understand the variables' output format %w.dg.
> How does Stata leave up to the format the number of digits to be displayed to the right of the decimal point if d equals 0 and not more than d digits will be displayed if d!=0.
> For example,
> What does "12.0g" mean?
> Why "di %12.0g 5231371222.139" or "di %12.1g 5231371222.139" equals "5231371222", not "5231371222.1"? (the width of "5231371222" is 10, not 12.)
> Why "di %12.0g 0.0000029394" equals "2.93940e-06", not "2.9394e-06"?
> Thank you for any help.
> Grace 
> *
> * 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/ 		 	   		  
*
*   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