Check out example codes for "c++ std::fmin". It will help you in understanding the concepts better.

Code Example 1

#include <iostream>
#include <cmath>
 
int main()
{
    std::cout << "fmin(2,1)    = " << std::fmin(2,1) << '\n'
              << "fmin(-Inf,0) = " << std::fmin(-INFINITY,0) << '\n'
              << "fmin(NaN,-1) = " << std::fmin(NAN,-1) << '\n';
}

Learn ReactJs, React Native from akashmittal.com