1 2 3 4 5 6 7 8 9 10 11 12
#include <stdio.h>
#include <float.h>
int main()
{
printf("Speichergröße für float : %ld Byte \n", sizeof(float));
printf("Minimaler float-Wert (negativ): %E\n", FLT_MIN );
printf("Maximaler float-Wert (positiv): %E\n", FLT_MAX );
printf("Nachkommastellen von float: %d\n", FLT_DIG );
return 0;
}