fmax(3)


NAME

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

SYNOPSIS

   #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

DESCRIPTION

   These functions return the larger value of x and y.

RETURN VALUE

   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.

ERRORS

   No errors occur.

VERSIONS

   These functions first appeared in glibc in version 2.1.

ATTRIBUTES

   For   an   explanation   of   the  terms  used  in  this  section,  see
   attributes(7).

   
   Interface                 Attribute      Value   
   
   fmax(), fmaxf(), fmaxl()  Thread safety  MT-Safe 
   

CONFORMING TO

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

SEE ALSO

   fdim(3), fmin(3)

COLOPHON

   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
   https://www.kernel.org/doc/man-pages/.

                              2016-07-17                           FMAX(3)


More Linux Commands

manpages/kdeinit4.8.html
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

manpages/storage.conf.5.html
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

manpages/FcMatrixRotate.3.html
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

manpages/glob.n.html
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

manpages/blkdeactivate.8.html
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

manpages/SDL_Rect.3.html
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

manpages/perlobj.1.html
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

manpages/pamslice.1.html
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

manpages/inplace.3am.html
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

manpages/XPropertyEvent.3.html
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

manpages/pgmdeshadow.1.html
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

manpages/iso_8859-13.7.html
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.