Answers for "c++ std::fmin"

C++
1

c++ std::fmin

#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';
}
Posted by: Guest on September-19-2020

Browse Popular Code Answers by Language