Skip to content

num::ulp_distance

Defined in header <core/types.hpp>

std::uint64_t ulp_distance(double a, double b) noexcept;

Count the representable values between a and b; the largest uint64_t for NaN.

Notes

+0 and -0 are 0 apart.