> foreach num of numlist 1.367456 0.0000925 0.5623 13.5678 {
autofmt, input(1.367456 0.0000925 0.5623 13.5678) auto(2)
ret list
. ret list
scalars:
r(deci4) = 1
r(deci3) = 2
r(deci2) = 6
r(deci1) = 2
macros:
r(output4) : "13.6"
r(input4) : "13.5678"
r(fmt4) : "1f"
r(output3) : "0.56"
r(input3) : "0.5623"
r(fmt3) : "2f"
r(output2) : "0.000092"
r(input2) : "0.0000925"
r(fmt2) : "6f"
r(output1) : "1.37"
r(input1) : "1.367456"
r(fmt1) : "2f"
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
*
* 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/