Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Data types, collapse & egen


From   [email protected] (Alan Riley)
To   [email protected]
Subject   Re: st: Data types, collapse & egen
Date   Mon, 12 Sep 2005 17:58:34 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index