#include <iostream>
#include <cmath>
#include <limits>
int main() {
auto m = std::numeric_limits<float>::max();
std::cout << "float max: " << m << "\n";
auto x = std::nextafter(m, 0.0f);
std::cout << "biggest value less than max: " << x << "\n";
auto d = m - x;
std::cout << "the difference: " << d << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDxsaW1pdHM+CgppbnQgbWFpbigpIHsKCWF1dG8gbSA9IHN0ZDo6bnVtZXJpY19saW1pdHM8ZmxvYXQ+OjptYXgoKTsKCXN0ZDo6Y291dCA8PCAiZmxvYXQgbWF4OiAiIDw8IG0gPDwgIlxuIjsKCWF1dG8geCA9IHN0ZDo6bmV4dGFmdGVyKG0sIDAuMGYpOwoJc3RkOjpjb3V0IDw8ICJiaWdnZXN0IHZhbHVlIGxlc3MgdGhhbiBtYXg6ICIgPDwgeCA8PCAiXG4iOwoJYXV0byBkID0gbSAtIHg7CglzdGQ6OmNvdXQgPDwgInRoZSBkaWZmZXJlbmNlOiAiIDw8IGQgPDwgIlxuIjsKCXJldHVybiAwOwp9