CWE-1077

Overview
  • CWE ID
  • 1077
  • CWE Name
  • Floating Point Comparison with Incorrect Operator
  • CWE Abstraction
  • Variant
  • CWE structure
  • Simple
  • CWE Status
  • Incomplete
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.
Extended Description
Related CWEs
CWE ID View ID Nature Ordinal
697 1000 ChildOf Primary