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" <[email protected]>
To   <[email protected]>
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
[email protected]

----- Original Message ----- 
From: "Clara" <[email protected]>
To: <[email protected]>
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,


*   For searches and help try:

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