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

   Interface                 Attribute      Value   
   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

kdeinit4(8) - KDE process launcher - Linux manual page......
kdeinit4 is a process launcher somewhat similar to the famous init used for booting UNIX. It executes KDE programs and kdeinit loadable modules (KLMs) starting

storage.conf(5) - Configuration file for storage manager....
The file pathetc/storage.conf contains the rules to be used in assigning articles to different storage methods. These rules determine where incoming articles wi

FcMatrixRotate(3) - Rotate a matrix - Linux manual page.....
FcMatrixRotate rotates matrix by the angle whos sine is sin and cosine is cos. This is done by multiplying by the matrix: cos -sin sin cos VERSION Fontconfig ve

glob(n) - Return names of files that match patterns.........
This command performs file name globbing in a fashion similar to the csh shell or bash shell. It returns a list of the files whose names match any of the patter

blkdeactivate(8) utility to deactivate block devices........
blkdeactivate utility deactivates block devices. If a device is mounted, the utility can unmount it automatically before trying to deactivate. The utility curre

SDL_Rect(3) - Defines a rectangular area - Linux man page...
A SDL_Rect defines a rectangular area of pixels. It is used by SDL_BlitSurface to define blitting regions and by several other video functions. SEE ALSO SDL_Bli

perlobj(1) - Perl objects (Commands - Linux manual page)....
This document provides a reference for Perls object orientation features. If youre looking for an introduction to object-oriented programming in Perl, please se

pamslice(1) - extract one line of values out of a Netpbm ima
This program is part of Netpbm(1) pamslice extracts one line of tuples (pixels) out of a Netpbm image and prints their values in a table. A line means a row or

inplace(3am) emulate sed perl ruby in-place editing.........
The inplace extension adds two functions named inplace_begin() and inplace_end(). These functions are meant to be invoked from the inplace.awk wrapper (whose co

XPropertyEvent(3) - PropertyNotify event structure (ManPage)
The structure for PropertyNotify events contains: typedef struct { int type; /* PropertyNotify */ unsigned long serial; /* # of last request processed by server

pgmdeshadow(1) - Deshadow a PGM image - Linux manual page...
This program is part of Netpbm(1) pgmdeshadow removes gray shadows from an image. This is useful for an image containing text, such as a scanned book pages, whe

iso_8859-13(7) - ISO 8859-13 character set encoded in octal,
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-13 encodes the characters used in Balti

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