I am facing this problem in Stata 16. When I export data to Excel using Stata 16, the decimal points are all rounded to zero, but this does not happen in Stata 14.
Stata 14
and the Excel output

And now the same in Stata 16
And the output looks like this in Excel.

Thanks for your comments.
Stata 14
Code:
. clear . set seed 1234 . set obs 10 . gen var = uniform() . list +----------+ | var | |----------| 1. | .9472316 | 2. | .0522234 | 3. | .9743183 | 4. | .9457484 | 5. | .1856478 | |----------| 6. | .9487334 | 7. | .8825376 | 8. | .9440776 | 9. | .0894259 | 10. | .7505445 | +----------+
And now the same in Stata 16
Code:
. clear . set seed 1234 set obs 10 . gen var = uniform() . list +----------+ | var | |----------| 1. | .9472316 | 2. | .0522234 | 3. | .9743183 | 4. | .9457484 | 5. | .1856478 | |----------| 6. | .9487334 | 7. | .8825376 | 8. | .9440776 | 9. | .0894259 | 10. | .7505445 | +----------+ export excel using "C:\temp\example2.xls", firstrow(variables)
Thanks for your comments.
Comment