Eric Wruck ([email protected]) asks about datatypes and rounding:
> ...
> But instead of values such as 1,045,855,825 I get 1,046,000,000
> instead. I looked at help for double & learned that the min & max
> values for that data type are enormous.
> ...
The number 1,045,855,825 is certainly within the number of digits
of precision offered by the double datatype. It is hard to determine
why Eric is seeing 1,046,000,000 rather than the desired result
without seeing all of the steps that were followed to calculate this
value.
I recommend that Eric send an email to [email protected]
and attach a dataset and do-file which can be used to reproduce
the result.
--Alan
([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/