Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Possible error in the latest stata

From   "Michael Blasnik" <>
To   <>
Subject   st: Re: Possible error in the latest stata
Date   Mon, 16 Jan 2006 19:47:28 -0500

This is a faq, see

Computers work in binary and Stata is very precise about equality comparisons.

Michael Blasnik

----- Original Message ----- From: <>
To: <>
Sent: Monday, January 16, 2006 4:32 PM
Subject: st: Possible error in the latest stata

Dear Statalist,

This is the problem I have with the latest update of Stata:

in any existing dataset or set obs 100

. gen k=0.4
. count if k==0.4

if you browse this new variables you would see that k is equal not to 0.4 but

Interestingly, if you gen k=0.5, 0.41... everything is fine, but the problem
persists for 0.6, 0.7, 0.8.

*   For searches and help try:

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