c++ std::fmin

The std::fmin function in C++ returns the smaller of two floating-point numbers. It takes two arguments, x and y, and returns the smaller of the two. If either argument is NaN, the function returns the other argument. If both arguments are NaN, the function returns NaN. If one argument is positive zero and the other is negative zero, the function returns negative zero. If one argument is an infinity and the other is not, the function returns the non-infinity argument. If both arguments are infinities, the function returns the positive infinity.