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


   #include <math.h>

   double fmax(double x, double y);
   float fmaxf(float x, float y);
   long double fmaxl(long double x, long double y);

   Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   fmax(), fmaxf(), fmaxl():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L


   These functions return the larger value of x and y.


   These functions return the maximum of x and y.

   If one argument is a NaN, the other argument is returned.

   If both arguments are NaN, a NaN is returned.


   No errors occur.


   These functions first appeared in glibc in version 2.1.


   For   an   explanation   of   the  terms  used  in  this  section,  see

   │InterfaceAttributeValue   │
   │fmax(), fmaxf(), fmaxl() │ Thread safety │ MT-Safe │


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


   fdim(3), fmin(3)


   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at

                              2016-07-17                           FMAX(3)

More Linux Commands

gnutls_session_set_ptr(3) - API function - Linux man page...
This function will set (associate) the user given pointer ptr to the session structure. This is pointer can be accessed with gnutls_session_get_ptr(). REPORTING

gnutls_hex_encode(3) - API function - Linux manual page.....
This function will convert the given data to printable data, using the hex encoding, as used in the PSK password files. RETURNS GNUTLS_E_SHORT_MEMORY_BUFFER if

pthread_create(3) - create a new thread - Linux manual page
The pthread_create() function starts a new thread in the calling process. The new thread starts execution by invoking start_routine(); arg is passed as the sole

git-cherry-pick(1) - Apply the changes introduced by some ex
Given one or more existing commits, apply the change each one introduces, recording a new commit for each. This requires your working tree to be clean (no modif

xdr_bool(3) - library routines for external data representat
These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using

mrtglib(1) Library for MRTG and support scripts (Man Page)
MRTG_lib is part of MRTG , the Multi Router Traffic Grapher. It was separated from MRTG to allow other programs to easily use the same config files. The main pa

mcs(1) - Mono C# Compiler (1.0, 2.0, Moonlight) (Man Page)
mcs is the Mono C# compiler, an implementation of the ECMA-334 language specification. You can pass one or more options to drive the compiler, and a set of sour

startpar(8) - start runlevel scripts in parallel (Man Page)
startpar is used to run multiple run-level scripts in parallel. The degree of parallelism on one CPU can be set with the -p option, the default is full parallel

msgattrib(1) - attribute matching and manipulation on messag
Filters the messages of a translation catalog according to their attributes, and manipulates the attributes. Mandatory arguments to long options are mandatory f

fts(3) - traverse a file hierarchy - Linux manual page......
The fts functions are provided for traversing file hierarchies. A simple overview is that the fts_open() function returns a handle on a file hierarchy, which is

bounce(8) - Postfix delivery status reports - Linux man page
The bounce(8) daemon maintains per-message log files with delivery status information. Each log file is named after the queue file that it corresponds to, and i

XtGrabPointer(3) - manage grabs (Library - Linux man page)
XtGrabKey calls XGrabKey specifying the widgets window as the grab window if the widget is realized. The remaining arguments are exactly as for XGrabKey. If the

We can't live, work or learn in freedom unless the software we use is free.