From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | st: Re: Significant figures formats |
Date | Fri, 18 Jul 2003 18:06:21 +0100 |
At 11:19 18/07/03 -0500, Bill Gould wrote (re significant figures formats):
With Stata 8, try %9.2g, %8.2g, or %<w>.2g: . display %9.2g 4.52394e-3 .0045 . display %9.2g 4.52394e-5 .000045 Display value x with %<w>.<d>g, with d!=0, does not display significant figures, but for |x|<1, it does. Let me repeat something I wrote on 7apr2003:
. . <A lot of very useful info> . .
Thanks to Bill for his very helpful advice, which saved me a bit of not-very-interesting programming. The %10.2g format is very useful, but I think the proposed "round-and-pad" %10.2G format would be even better.If there is an interest in the round-and-pad solution, we would be willing to implement a %G format to go along with %g.
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |