[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: Significant figures formats
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
. display %9.2g 4.52394e-5
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.
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Opinions expressed are those of the author, not the institution.
* For searches and help try: