1FMAX(3)                    Linux Programmer's Manual                   FMAX(3)
2
3
4

NAME

6       fmax, fmaxf, fmaxl - determine maximum of two floating-point numbers
7

SYNOPSIS

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(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or
20       cc -std=c99
21

DESCRIPTION

23       These functions return the larger value of x and y.
24

RETURN VALUE

26       These functions return the maximum of x and y.
27
28       If one argument is a NaN, the other argument is returned.
29
30       If both arguments are NaN, a NaN is returned.
31

ERRORS

33       No errors occur.
34

VERSIONS

36       These functions first appeared in glibc in version 2.1.
37

CONFORMING TO

39       C99, POSIX.1-2001.
40

SEE ALSO

42       fmin(3)
43

COLOPHON

45       This page is part of release 3.22 of the Linux  man-pages  project.   A
46       description  of  the project, and information about reporting bugs, can
47       be found at http://www.kernel.org/doc/man-pages/.
48
49
50
51                                  2008-08-11                           FMAX(3)
Impressum