Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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();
...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #inf
ADD COMMENT
Topic
Name
5+8 =