Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Fraction 0.8 vs 0.8000001
From
Matthew White <[email protected]>
To
[email protected]
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 <[email protected]> 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/