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

st: list a variable


From   [email protected]
To   [email protected]
Subject   st: list a variable
Date   Wed, 16 Apr 2003 23:05:30 -0400

Dear Lister:
This is my second question.
I have look at the manual for a long time,and try different variable format, 
but, it seems not work.

Suppose I have a variable with the following numbers:

obs1 123456789123456789
......

That means, the entry of this variable is a huge number.
However, when I ask Stata to list this variable.
Stata always return:

obs1 1.234..e17 instead of its original format.

I tried to open the data editor, and see whether I can see it's original format.
But, the value shown on data editor is the same: 1.234e17.

Then, I turn to reformat this variable to be a string variable, and ask Stata 
to list it.

Therefore, I type:

gen str18 y=string(x)

and list variable y
But, the y contains:
obs1 1.234e17.

I am just wondering whether there is any method that can solve this situation?

Thank you very much and have a nice day

Jitian
*
*   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