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

st: Inputting large numbers


From   [email protected]
To   [email protected]
Subject   st: Inputting large numbers
Date   Sat, 03 Jul 2004 12:37:16 -0400

Recently, a poster posted a question about converting a long string which contained "numeric" data to numeric. I recently had the same problem and eventually solved it. While trying to solve my problem, I looked at inputting large integers and came across the following

. set obs 1
. gen x=1234567890
. format x %15.0g

. list

     +------------+
     |          x |
     |------------|
  1. | 1234567936 |
     +------------+

Is there some limit on the size of integers (answer: of course there is) but why doesn't Stata give me some sort of warning message?

Joseph

__________________________________________________________________
Switch to the New Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
*
*   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