Код: Выделить всё
feclearexcept(FE_INEXACT);
long double ld = 1.0L;
for (size_t i = 2; ld < numeric_limits::max(); i++)
{
long double ld1 = ld * i;
if (fetestexcept(FE_INEXACT))
{
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79602836/c-23-numeric-limitslong-doublemax-use-case[/url]
Мобильная версия