FLT_MAX --Constant representing the minimum positive value of float

FLT_MAX is a constant that represents the maximum positive value of float --single precision (32bit) floating point type. It can be used by including the float.h header.

#include <stdio.h>
#include <float.h>

int main (void) {
  printf("%f\n", FLT_MAX);
}

"%F" is used in the format specifier of printf function.

The output FLT_MAX value.

340282346638528859811704183484516925440.000000

Constant representing the negative minimum value of float

The maximum negative value can be expressed by "-FLT_MAX" with a minus sign.

Associated Information