Common Weakness Enumeration
CWE Definition / CWE-1077
CWE-1077: Floating Point Comparison with Incorrect Operator
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.
Published:2 Jul 2018
Organization:MITRE
Modified:11 Dec 2025
Related Weakness
CWE-697: Incorrect Comparison
