yes, we could also use std::numeric_limits<double>::max() (http://www.cplusplus.com/reference/limits/numeric_limits/).

my one concern was that what happens if you add 1.0 to this value? does it wrap around?