[ create a new paste ] login | about

Link: http://codepad.org/jFlQi5pQ    [ raw code | output | fork ]

C++, pasted on Nov 13:
1
2
3
4
5
6
7
int main() {
double zero = 0;
double three = 3.0;
double x = three / zero;

std::cout << (x == std::numeric_limits<double>::infinity()) << std::endl;
}


Output:
1
true


Create a new paste based on this one


Comments: