cve.bz

CWE-1077: Floating Point Comparison with Incorrect Operator, published in 2024

Filter

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.

What the weakness is: CWE-1077 at MITRE. All weaknesses

Ask an AI about CWE-1077

Show the promptExplain CWE-1077: Floating Point Comparison with Incorrect Operator and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/1077.html and https://cve.bz/cve/cwe/1077?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

No records match.