// -----------------------#include stdio.h#include float.hint main () {printf(The maximum value of float = %.10e\\n, FLT_MAX);

编程学习网为您整理以下代码实例,主要实现:C语言库float.h,希望可以帮到各位朋友。

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

int main () {
   printf("The maximum value of float = %.10e\n", FLT_MAX);
   printf("The minimum value of float = %.10e\n", FLT_MIN);
   printf("The number of digits in the number = %.10e\n", FLT_MANT_DIG);
}