Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: infix problem


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Re: infix problem
Date   Thu, 15 May 2008 08:43:23 -0400

-findit precision- will point you to several useful FAQs. Yes, a double will allow you to represent numbers up to 10^307. But that does not mean that you can have an arbitrary number of digits of precision in the representation of that number, as the FAQs discuss. You cannot represent integers with more than a certain number of binary digits of precision, which then translates into a certain number of decimal digits which can be held exactly: about 7 for a float, about 15 for a double. But to avoid worrying about these problems, just store integer IDs as strings of appropriate length.

Kit

Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


On May 15, 2008, at 02:33 , statalist-digest wrote:


If double can't deal with 16 digits number, what does the help mean by
saying it can store up to 8.9884656743*10^307?
*
*   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