1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
6 .\" Distributed under GPL
9 .TH FMAX 3 2017-09-15 "" "Linux Programmer's Manual"
11 fmax, fmaxf, fmaxl \- determine maximum of two floating-point numbers
16 .BI "double fmax(double " x ", double " y );
17 .BI "float fmaxf(float " x ", float " y );
18 .BI "long double fmaxl(long double " x ", long double " y );
24 Feature Test Macro Requirements for glibc (see
25 .BR feature_test_macros (7)):
32 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
35 These functions return the larger value of
40 These functions return the maximum of
45 If one argument is a NaN, the other argument is returned.
47 If both arguments are NaN, a NaN is returned.
51 These functions first appeared in glibc in version 2.1.
53 For an explanation of the terms used in this section, see
61 Interface Attribute Value
66 T} Thread safety MT-Safe
72 C99, POSIX.1-2001, POSIX.1-2008.