Float.min_float is a positive number:
# Float.min_float;;
- : float = 2.22507385850720138e-308
This is a bit surprising to me. Shouldn’t it be a negative number?
Float.min_float is a positive number:
# Float.min_float;;
- : float = 2.22507385850720138e-308
This is a bit surprising to me. Shouldn’t it be a negative number?
I’m pretty sure I got as surprised as you are at some point.
But it mirrors what C says about this (DBL_MIN). So as a consolation it’s less surprising polyglotally speaking. The number you are seeking for is ~-. max_float.
Oh that makes sense–thanks!