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, is already up and running.

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

st: Fraction 0.8 vs 0.8000001

From   qing ye <>
Subject   st: Fraction 0.8 vs 0.8000001
Date   Fri, 23 Dec 2011 23:33:05 +0800

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?

*   For searches and help try:

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