pub unsafe fn q_fuzzy_compare_2_qfloat16(
    p1: impl CastInto<Ref<Qfloat16>>,
    p2: impl CastInto<Ref<Qfloat16>>
) -> bool
Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
Expand description

Compares the floating point value p1 and p2 and returns true if they are considered equal, otherwise false.

Calls C++ function: bool qFuzzyCompare(qfloat16 p1, qfloat16 p2).

C++ documentation:

Compares the floating point value p1 and p2 and returns true if they are considered equal, otherwise false.

The two numbers are compared in a relative way, where the exactness is stronger the smaller the numbers are.