Don't compare floats for equality

Dirk Hohndel dirk at hohndel.org
Tue Jan 21 14:10:58 UTC 2014


did you try to compile that patch?

FP_IS_SAME / IS_FP_SAME

:-)

/D

On Tue, 2014-01-21 at 22:03 +0100, Robert C. Helling wrote:
> Now that we have a macro to replace float equality testing, we should use it in places where floating point jitter might bite use otherwise.
> 
> --                                                                              
> .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO 
> Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics  
>                       Scientific Coordinator                                   
>                       Ludwig Maximilians Universitaet Muenchen, Dept. Physik    
> print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339       
>     stupid .sig\n";   http://www.atdotde.de 
> 
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface




More information about the subsurface mailing list