1FMAX(P) POSIX Programmer's Manual FMAX(P)
2
3
4
6 fmax, fmaxf, fmaxl - determine maximum numeric value of two floating-
7 point numbers
8
10 #include <math.h>
11
12 double fmax(double x, double y);
13 float fmaxf(float x, float y);
14 long double fmaxl(long double x, long double y);
15
16
18 These functions shall determine the maximum numeric value of their
19 arguments. NaN arguments shall be treated as missing data: if one argu‐
20 ment is a NaN and the other numeric, then these functions shall choose
21 the numeric value.
22
24 Upon successful completion, these functions shall return the maximum
25 numeric value of their arguments.
26
27 If just one argument is a NaN, the other argument shall be returned.
28
29 If x and y are NaN, a NaN shall be returned.
30
32 No errors are defined.
33
34 The following sections are informative.
35
37 None.
38
40 None.
41
43 None.
44
46 None.
47
49 fdim() , fmin() , the Base Definitions volume of IEEE Std 1003.1-2001,
50 <math.h>
51
53 Portions of this text are reprinted and reproduced in electronic form
54 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
55 -- Portable Operating System Interface (POSIX), The Open Group Base
56 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
57 Electrical and Electronics Engineers, Inc and The Open Group. In the
58 event of any discrepancy between this version and the original IEEE and
59 The Open Group Standard, the original IEEE and The Open Group Standard
60 is the referee document. The original Standard can be obtained online
61 at http://www.opengroup.org/unix/online.html .
62
63
64
65IEEE/The Open Group 2003 FMAX(P)