Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | qing ye <yeqing1013@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
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? 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/