Function qt_core::q_fuzzy_compare_2_float
source · pub unsafe fn q_fuzzy_compare_2_float(p1: c_float, p2: c_float) -> bool
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(float p1, float p2)
.
Warning: no exact match found in C++ documentation. Below is the C++ documentation for 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.