Why std::floor(1 - std::numeric_limits<float>::min()) evaluates to 1

29 views Asked by At

why do both

    std::cout << std::floor(1 - std::numeric_limits<float>::min());
    std::cout << std::ceil(1 - std::numeric_limits<float>::min());

print 1 instead of 0?

0

There are 0 answers