[−][src]Function qt_core::q_fuzzy_compare_2_qfloat16
pub unsafe fn q_fuzzy_compare_2_qfloat16(
p1: impl CastInto<Ref<Qfloat16>>,
p2: impl CastInto<Ref<Qfloat16>>
) -> bool
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)
.
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.
This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.