Comment by shultays
3 years ago
You only need a single bit to represent a number and say that number is infinity. But if you want to waste another 63 bits and be a bit more portable:
std::numeric_limits<double>::infinity()
3 years ago
You only need a single bit to represent a number and say that number is infinity. But if you want to waste another 63 bits and be a bit more portable:
std::numeric_limits<double>::infinity()
No comments yet
Contribute on Hacker News ↗