INFINITY - C math.h

C examples for math.h:INFINITY

type

Macro constant

From

<cmath>
<ctgmath>
<math.h>

Description

Macro constant that expands to an expression of type float and denote the value of infinity.

Demo Code


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

int main()/*from  w  ww .j  a  v a 2 s  .  c  om*/
{
    printf("%f",INFINITY);
    return 0;
}

Related Tutorials