[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: double to integer
maybe all values of id exceed the range of the integer type (-32,767
to 32,740; whelp datatypes) if so try recasting it to long. In case
that does not work either then you might have all values staying
outside the intervall -2,147,483,647 to 2,147,483,620. This could
happen with a double variable, at least from what I understand.
On Apr 7, 2005 9:29 PM, Oleksandr Shepotylo <email@example.com> wrote:
> I have integer variable that is stored as double.
> I tried to change it to integer using
> recast int id
> getting message "id would be changed... no changes made"
> if i use
> recast int id, force
> it gives all missing
> Any ideas how to change it to integer?
> * 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/
- Seb F Buechte
- Stay tuned!
* For searches and help try: