Computer Science


ISINF(3)            Linux Programmer's Manual            ISINF(3)

NAME
       isinf,  isnan,  finite - test for infinity or not-a-number
       (NaN)

SYNOPSIS
       #include <math.h>

       int isinf(double value);

       int isnan(double value);

       int finite(double value);

DESCRIPTION
       The isinf() function returns -1 if value represents  nega-
       tive  infinity,  1  if value represents positive infinity,
       and 0 otherwise.

       The isnan() function returns a non-zero value if value  is
       "not-a-number" (NaN), and 0 otherwise.

       The finite() function returns a non-zero value if value is
       neither infinite nor a "not-a-number" (NaN) value,  and  0
       otherwise.

CONFORMING TO
       BSD 4.3

GNU                        June 2, 1993                         1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page