Can't find something like `Float::INFINITY` for ruby 1.8.7, so I don't know how to get the same behavior there.