Developer Guide

Intel® oneAPI DPC++/C++ Compiler Handbook for FPGAs

ID 785441
Date 5/05/2025
Public

Visible to Intel only — GUID: GUID-5AE221C7-A65C-43F9-91DC-C6663A7A8218

Document Table of Contents

Comparison Operators

Comparison operators (>, <, ==, !=, >=, <=) are subject to the conversion rules described in Conversion Rules for the ap_float Data Type.

The == and != operators impose a bit-wise comparison of the casted values.

Comparisons with NaN always return false.