Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Fraction 0.8 vs 0.8000001


From   Matthew White <mwhite@poverty-action.org>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Fraction 0.8 vs 0.8000001
Date   Fri, 23 Dec 2011 10:42:43 -0500

Hi Qing,

This is a VFAQ on this list. See for example this recent thread:
http://www.stata.com/statalist/archive/2011-12/msg00678.html

Best,
Matt

On Fri, Dec 23, 2011 at 10:33 AM, qing ye <yeqing1013@gmail.com> wrote:
> Dear statalist
>
> Why when I try to generate variable=(5-1)/5, stata cannot generate a
> variable equal to 0.8, the result the code generated is 0.8000001, why
> is this happening? How can I fix it?
>
> Qing
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/



-- 
Matthew White
Data Coordinator
Innovations for Poverty Action
101 Whitney Avenue, New Haven, CT 06510 USA
+1 434-305-9861
www.poverty-action.org

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index