 |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE : st: format %w.dg
Hi Michael,
If you want the leading zero, I don't understand why you don't want to use %0#.#f format...
See - help format -.
Best,
Sylvain
________________________________________
De : owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] de la part de Michael Betz [betz.40@buckeyemail.osu.edu]
Date d'envoi : mardi 6 novembre 2012 09:03
À : statalist@hsphsun2.harvard.edu
Objet : RE: st: format %w.dg
Hi Sylvain--I thought that would do the trick too, but it did not.
-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of WEBER Sylvain
Sent: Tuesday, November 06, 2012 12:52 AM
To: <statalist@hsphsun2.harvard.edu>
Subject: Re: st: format %w.dg
Hi,
This should be:
%04.3f
Sylvain
Le 5 nov. 2012 à 12:16, "Michael Betz" <betz.40@buckeyemail.osu.edu> a écrit :
> Hi all,
>
> Does anyone know if it is possible to get the %w.dg format to display a zero to the left of a decimal point when the number is less than zero the way that %w.df does?
>
> For example %4.3g will display 0.314 as .314. Conversely, %4.3f will display 0.314 as 0.314
>
> Is there any way around this or is it just something I have to live with?
>
> Thanks,
> Mike
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/