Tag Archives: Floating Point Comparison with Incorrect Operator

CWE-1077 – Floating Point Comparison with Incorrect Operator

Read Time:15 Second

Description

The code performs a comparison such as an
equality test between two float (floating point) values, but
it uses comparison operators that do not account for the
possibility of loss of precision.

Modes of Introduction:

 

 

Related Weaknesses

CWE-697

 

Consequences

Other: Reduce Reliability

 

Potential Mitigations

CVE References