Answers for "c++ set value to inf"

C++
0

c++ set value to inf

#include <limits>

int a = std::numeric_limits<int>::infinity();
float a = std::numeric_limits<float>::infinity();
double a = std::numeric_limits<double>::infinity();
...
Posted by: Guest on September-08-2021

Browse Popular Code Answers by Language