Why is f64::MIN_EXP off by 1?

Is there a rationale for why f64::MIN_EXP is -1021, while 2^-1022 is a perfectly valid normal f64 number?

Why is f64::MIN_EXP one larger than the minimum possible (non-subnormal) exponent?

Holdover from copying C's float.h, it seems. (And previously.)

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.