Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp infinity

size_t INF_SPECIAL = ((size_t) ~0); // generates all 1's

int INF_INT = std::numeric_limits<int>::max(); // #include <limits>
double INF_DOUBLE = std::numeric_limits<double>::infinity();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cpp #infinity
ADD COMMENT
Topic
Name
3+3 =