HUGE_VAL - C math.h

C examples for math.h:HUGE_VAL

type

Macro

From

<cmath>
<ctgmath>
<math.h>

Description

Macro constant that expands to a positive expression of type double.

A function returns this value when the result is too large in magnitude to be representable with its return type.

Demo Code


#include <stdio.h>
#include <math.h>

int main()//  w ww  .j  a va2  s  .  com
{
    printf("%f",HUGE_VAL);
    return 0;
}

Related Tutorials