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

st: How to display 10 digits data in data panel


From   mzhang@nd.edu
To   statalist@hsphsun2.harvard.edu
Subject   st: How to display 10 digits data in data panel
Date   Sat, 3 Sep 2005 18:00:55 -0500

for example:

set obs 1
gen vindex=2158
gen number=5746340000+2158

by stata default, not all the digits of "number" show up in the data panel.
therefore i use the syntax

format number %13.0g

to display all the digits. however, the result comes out weird. it is 5746342400
instead of 5746342158. why??????

Thanks


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