fmaxのヘルプ・マニュアル
日本語 英語
fmax --help
man fmax
FMAX(3) Linux Programmer’s Manual FMAX(3)
名前
fmax, fmaxf, fmaxl - 二つの浮動小数点数の最大値を求める
書式
#include
double fmax(double x, double y);
float fmaxf(float x, float y);
long double fmaxl(long double x, long double y);
-lm でリンクする。
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
fmax(), fmaxf(), fmaxl(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or
cc -std=c99
説明
これらの関数は x と y のうち大きい方の値を返す。
返り値
これらの関数は x と y の最大値を返す。
一方の引き数が NaN の場合、もう一方の値が返される。
両方の引き数が NaN の場合、NaN が返される。
エラー
エラーは発生しない。
バージョン
これらの関数は glibc バージョン 2.1 で初めて登場した。
準拠
C99, POSIX.1-2001.
関連項目
fmin(3)
2008-08-11 FMAX(3)
FMAX(3) Linux Programmer’s Manual FMAX(3)
NAME
fmax, fmaxf, fmaxl - determine maximum of two floating-point numbers
SYNOPSIS
#include
double fmax(double x, double y);
float fmaxf(float x, float y);
long double fmaxl(long double x, long double y);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
fmax(), fmaxf(), fmaxl(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or
cc -std=c99
DESCRIPTION
These functions return the larger value of x and y.
RETURN VALUE
These functions return the maximum of x and y.
If one argument is a NaN, the other argument is returned.
If both arguments are NaN, a NaN is returned.
ERRORS
No errors occur.
VERSIONS
These functions first appeared in glibc in version 2.1.
CONFORMING TO
C99, POSIX.1-2001.
SEE ALSO
fmin(3)
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/.
2008-08-11 FMAX(3)