#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;
}