Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Grace Jessie <gracejessie@hotmail.com> |
To | <statalist@hsphsun2.harvard.edu> |
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: gracejessie@hotmail.com > To: statalist@hsphsun2.harvard.edu > 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/