Statalist


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

st: Re: infix problem


From   "[email protected]" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Re: infix problem
Date   Fri, 16 May 2008 07:40:16 -0700

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

_____________________________________________________________________
Mensaje analizado y protegido por Telefonica Empresas
*
*   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/

Privileged, confidential or patient identifiable information may be contained in this message. This information is meant only for the use of the intended recipients. If you are not the intended recipient, or if the message has been addressed to you in error, do not read, disclose, reproduce, distribute, disseminate or otherwise use this transmission. Instead, please notify the sender by reply e-mail, and then destroy all copies of the message and any attachments.

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