I'm trying to determine the minimum range of floating-point types.
It's easy when using values from standard headers:
#include <stdio.h>
#include <float.h>
main()
{
printf("Minimum range of float variable: %e\n", FLT_MIN);
printf("Minimum range of double variable: %e\n", DBL_MIN);
return 0;
}
This code gives the following output:
Minimum range of float variable: 1.175494e-038
Minimum range of double variable: 2.225074e-308
How do I get to these same values using only direct computation?