I would like to display a set of probabilities at two decimal places but with no leading zeros. E.g. I would like .95 to display as .95 and .90 to display as .90. I don't want .90 to display as 0.90 or as .9. Is there a display format that accomplishes this or do I need to resort to string manipulation (which is what I've been doing)?
Results:
Code:
loc p95=.95 di %3.2f `p95' di %3.2g `p95' loc p90=.90 di %3.2f `p90' di %3.2g `p90'
Code:
. loc p95=.95 . di %3.2f `p95' 0.95 . di %3.2g `p95' .95 . . loc p90=.90 . di %3.2f `p90' 0.90 . di %3.2g `p90' .9

Comment