Is std::numeric_limits<float>::is_iec559 + std::numeric_limits<float>::digits == 24 enough to ensure(1) that float is binary32(2) in IEEE 754 ? Same for double with ... digits == 53 ?
- In any case including the weirdest implementations still respecting the C++ standard.
- "binary32" is a specific representation of floating points in the IEEE 754 standard, I don't mean "stored in 32 bits".
Edit : + std::numeric_limits<float>::max_exponent - 1 == 127
Edit : Are there any other ways ? If yes, which one is "the best" ?