Linux

  1. Home
  2. Computing & Technology
  3. Linux
Linux / Unix Command: finite
Command Library

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 negative 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


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux

©2009 About.com, a part of The New York Times Company.

All rights reserved.