infnanのヘルプ・マニュアル
日本語 英語
infnan --help
man infnan
INFNAN(3) Linux Programmer’s Manual INFNAN(3)
名前
infnan - 無限大と無効値 (NaN) を取扱う
書式
#include
#include
double infnan(int error);
-lm でリンクする。
説明
関 数 infnan() は無限大と無効値 (NaN) の結果に対する適切な値を返す。
error の値は、無限大を表す ERANGE か NaN を表すそれ以外の値 で あ る 。
errno も同様に設定される。
返り値
error が ERANGE (無限大) の場合、 HUGE_VAL が返される。
error が -ERANGE (負の無限大) の場合、 -HUGE_VAL が返される。
error がそれ以外の値の場合、NaN が返される。
エラー
EDOM error の値が無効値 (NaN) である。
ERANGE error の値が正の無限大もしくは負の無限大である。
準拠
4.3BSD.
注意
こ の廃止された (obsolete) 関数は、 libc4 と libc5 で提供されていたが、
glibc2 では提供されていない。
GNU 1993-06-02 INFNAN(3)
INFNAN(3) Linux Programmer’s Manual INFNAN(3)
NAME
infnan - deal with infinite or not-a-number (NaN) result
SYNOPSIS
#include
double infnan(int error);
Link with -lm.
DESCRIPTION
The infnan() function returns a suitable value for infinity and "not-a-
number" (NaN) results. The value of error can be ERANGE to represent
infinity or anything else to represent NaN. errno is also set.
RETURN VALUE
If error is ERANGE (Infinity), HUGE_VAL is returned.
If error is -ERANGE (-Infinity), -HUGE_VAL is returned.
If error is anything else, NAN is returned.
ERRORS
EDOM The value of error is "not-a-number" (NaN).
ERANGE The value of error is positive infinity or negative infinity.
CONFORMING TO
4.3BSD.
NOTES
This obsolete function was provided in libc4 and libc5, but is not
available in glibc2.
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1993-06-02 INFNAN(3)