1FMAX(3) Linux Programmer's Manual FMAX(3)
2
3
4
6 fmax, fmaxf, fmaxl - determine maximum of two floating-point numbers
7
9 #include <math.h>
10
11 double fmax(double x, double y);
12 float fmaxf(float x, float y);
13 long double fmaxl(long double x, long double y);
14
15 Link with -lm.
16
17 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19 fmax(), fmaxf(), fmaxl():
20 _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE ||
21 _POSIX_C_SOURCE >= 200112L;
22 or cc -std=c99
23
25 These functions return the larger value of x and y.
26
28 These functions return the maximum of x and y.
29
30 If one argument is a NaN, the other argument is returned.
31
32 If both arguments are NaN, a NaN is returned.
33
35 No errors occur.
36
38 These functions first appeared in glibc in version 2.1.
39
41 C99, POSIX.1-2001.
42
44 fmin(3)
45
47 This page is part of release 3.53 of the Linux man-pages project. A
48 description of the project, and information about reporting bugs, can
49 be found at http://www.kernel.org/doc/man-pages/.
50
51
52
53 2010-09-20 FMAX(3)