Date: Sun, 25 May 1997 13:53:39 +0300 (IDT) From: Eli Zaretskii To: Paul Shirley cc: djgpp AT delorie DOT com Subject: Re: float & ints & triangle3d_f In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 20 May 1997, Paul Shirley wrote: > Never compare floats if you can avoid it. If you really do have to do > it, compute the difference in fp, store it as a float then check bit31 > (the sign bit). This method can only tell whether two numbers are different, but it won't tell whether they are (approximately) equal.