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

From |
Kit Baum <baum@bc.edu> |

To |
statalist@hsphsun2.harvard.edu |

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/

- Prev by Date:
**st: RE: paranoid...** - Next by Date:
**Re: st: SUM question** - Previous by thread:
**st: graph question** - Next by thread:
**st: Re: infix problem** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |