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); float fmaxf(float x, float y); long
12       double fmaxl(long double x, long double y);
13
14       Link with -lm.
15
16   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
17
18       fmax(), fmaxf(), fmaxl():
19           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
20

DESCRIPTION

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

RETURN VALUE

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

ERRORS

32       No errors occur.
33

VERSIONS

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

ATTRIBUTES

38       For  an  explanation  of  the  terms  used   in   this   section,   see
39       attributes(7).
40
41       ┌─────────────────────────┬───────────────┬─────────┐
42Interface                Attribute     Value   
43       ├─────────────────────────┼───────────────┼─────────┤
44fmax(), fmaxf(), fmaxl() │ Thread safety │ MT-Safe │
45       └─────────────────────────┴───────────────┴─────────┘

CONFORMING TO

47       C99, POSIX.1-2001, POSIX.1-2008.
48

SEE ALSO

50       fdim(3), fmin(3)
51

COLOPHON

53       This  page  is  part of release 5.07 of the Linux man-pages project.  A
54       description of the project, information about reporting bugs,  and  the
55       latest     version     of     this    page,    can    be    found    at
56       https://www.kernel.org/doc/man-pages/.
57
58
59
60                                  2017-09-15                           FMAX(3)
Impressum