4 ms·
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::n
by shultays 4y 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()