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

st: Re: how to read a 18 digits long variable


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: how to read a 18 digits long variable
Date   Tue, 3 Feb 2004 12:02:44 -0500

You must read it as a string -- double precision numbers simply do not have
18 digits of accuracy.  If you need a numeric identifier for some
statistics, you can use encode.

Also, please avoid html email if you can.

Michael Blasnik
michael.blasnik@verizon.net


----- Original Message ----- 
From: "Clara" <bldvegac@xa.bs.ehu.es>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, November 03, 2003 11:38 AM
Subject: st: how to read a 18 digits long variable



Hello, we are reading a data set in which the variable that identifies the
individual is 18 digits long. We have storaged this variable as a double
type variable, but the variable is not read correctly. It looks like only 16
digits have been read.

How can we get stata read this variable  with 18 digits of accuracy.

Thank you very much,

Clara


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index