Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: I visualize a different number


From   "Radwin, David" <dradwin@rti.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: I visualize a different number
Date   Tue, 18 Jun 2013 17:52:58 -0400

Try generating it as a double.

clear all
set obs 1
gen double x = 17440397133 in 1
format %15.0fc x
browse

For more information, -help data_types-.

David
--
David Radwin
Senior Research Associate
Education Studies Division
RTI International
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-665-8274

www.rti.org


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Saidé Salazar
> Sent: Tuesday, June 18, 2013 2:45 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: I visualize a different number
> 
> Hello guys,
> 
> I am capturing a number in Stata, but when I use the command "browse"
> I see a different number. Any idea of what is happening? (I see
> 17440397312 instead of 17440397133)
> 
> clear all
> set obs 1
> gen x = 17440397133 in 1
> format %15.0fc
> br


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index