Martina wrote:
i am quite surprised because i always thought stata is perfect
and everything that goes wrong is my own fault. but this time
i am really puzzled:
gen famsoxc02=0
replace famsoxc02= 891.1 if land== 6
replace famsoxc02=famsoxc02/100
tab famsoxc02 land if index==1
i get 8.910999 - should be 8.911. Can anyone explain?
----------------------------------------------------
This is a well-known situation, and it is not Stata's fault.
Read, for example, this FAQ about precision:
http://www.stata.com/support/faqs/data/prec.html
If you want to display the variable with three decimal digits:
format famsoxc02 %10.3f
- and it will display 8.911
Hope this helps
Svend
__________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [email protected]
__________________________________________
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/