pub unsafe fn q_float_distance_2_double(a: c_double, b: c_double) -> u64
Expand description

Returns the number of representable floating-point numbers between a and b.

Calls C++ function: quint64 qFloatDistance(double a, double b).

C++ documentation:

Returns the number of representable floating-point numbers between a and b.

This function serves the same purpose as qFloatDistance(float, float), but returns the distance between two double numbers. Since the range is larger than for two float numbers ([-DBL_MAX,DBL_MAX]), the return type is quint64.

This function was introduced in Qt 5.2.

See also qFuzzyCompare().