You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Bannier (JIRA)" <ji...@apache.org> on 2015/11/26 09:56:10 UTC

[jira] [Created] (MESOS-4019) Consider enabling (non-fatal) compiler warnings about float equality comparisons

Benjamin Bannier created MESOS-4019:
---------------------------------------

             Summary: Consider enabling (non-fatal) compiler warnings about float equality comparisons
                 Key: MESOS-4019
                 URL: https://issues.apache.org/jira/browse/MESOS-4019
             Project: Mesos
          Issue Type: Wish
            Reporter: Benjamin Bannier


Comparing floating point numbers for equality does what is naively expected only in a very limited number of cases. More often than not one should probably instead either choose types allowing exact representation, or switch to a domain-specific equality measure.

We should consider enabling compiler warnings on such operations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)