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

Re: st: Data types, collapse & egen

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

Eric Wruck ( 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

I recommend that Eric send an email to
and attach a dataset and do-file which can be used to reproduce
the result.

*   For searches and help try:

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