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

st: Re: infix problem

From   Kit Baum <>
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 Baum, Boston College Economics and DIW Berlin
An Introduction to Modern Econometrics Using Stata:

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:

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