fdiml(3)


NAME

   fdim, fdimf, fdiml - positive difference

SYNOPSIS

   #include <math.h>

   double fdim(double x, double y);
   float fdimf(float x, float y);
   long double fdiml(long double x, long double y);

   Link with -lm.

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

   fdimf(), fdiml():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L

DESCRIPTION

   These  functions  return  the  positive difference, max(x-y,0), between
   their arguments.

RETURN VALUE

   On success, these functions return the positive difference.

   If x or y is a NaN, a NaN is returned.

   If the result overflows, a range error occurs, and the functions return
   HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively.

ERRORS

   See  math_error(7) for information on how to determine whether an error
   has occurred when calling these functions.

   The following errors can occur:

   Range error: result overflow
          An overflow floating-point exception (FE_OVERFLOW) is raised.

   These functions do not set errno.

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).

   ┌─────────────────────────┬───────────────┬─────────┐
   │InterfaceAttributeValue   │
   ├─────────────────────────┼───────────────┼─────────┤
   │fdim(), fdimf(), fdiml() │ Thread safety │ MT-Safe │
   └─────────────────────────┴───────────────┴─────────┘

CONFORMING TO

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

SEE ALSO

   fmax(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-03-15                           FDIM(3)


More Linux Commands

manpages/XkbResizeDeviceButtonActions.3.html
XkbResizeDeviceButtonActions(3) - Allocate additional space
XkbResizeDeviceButtonActions reallocates space, if necessary, to make sure there is room for a total of new_total button actions in the device_info structure. A

manpages/XDrawImageString16.3.html
XDrawImageString16(3) - draw image text - Linux manual page
The XDrawImageString16 function is similar to XDrawImageString except that it uses 2-byte or 16-bit characters. Both functions also use both the foreground and

manpages/ditroff.7.html
ditroff(7) - classical device independent roff (Man Page)...
The name ditroff once marked a development level of the troff text processing system. In actual roff(7) systems, the name troff is used as a synonym for ditroff

manpages/strtoll.3.html
strtoll(3) - convert a string to a long integer (Man Page)
The strtol() function converts the initial part of the string in nptr to a long integer value according to the given base, which must be between 2 and 36 inclus

manpages/glStencilMask.3gl.html
glStencilMask(3gl) - control the writing of individual bits
glStencilMask controls the writing of individual bits in the stencil planes. The least significant $n$ bits of mask, where $n$ is the number of bits in the sten

manpages/ocsp.1ssl.html
ocsp(1ssl) Online Certificate Status Protocol utility.......
The Online Certificate Status Protocol ( OCSP ) enables applications to determine the (revocation) state of an identified certificate ( RFC 2560 ). The ocsp com

manpages/XML::DOM::NodeList.3pm.html
XML::DOM::NodeList(3pm) - A node list as used by XML::DOM...
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. The item

manpages/ovdb_init.8.html
ovdb_init(8) - Prepare ovdb database for use (Man Page).....
This command must be run before any other process can access the overview database. It performs the following steps: 1. Creates the database environment, if nec

manpages/feholdexcept.3.html
feholdexcept(3) - floating-point rounding and exception hand
These eleven functions were defined in C99, and describe the handling of floating-point rounding and exceptions (overflow, zero-divide, etc.). Exceptions The di

manpages/FcDirCacheUnlink.3.html
FcDirCacheUnlink(3) - Remove all caches related to dir......
Scans the cache directories in config, removing any instances of the cache file for dir. Returns FcFalse when some internal error occurs (out of memory, etc). E

manpages/Mail::SpamAssassin::Plugin::SpamCop.3pm.html
Mail::SpamAssassin::Plugin::SpamCop(3pm) - perform SpamCop r
SpamCop is a service for reporting spam. SpamCop determines the origin of unwanted email and reports it to the relevant Internet service providers. By reporting

manpages/gcj-dbtool.1.html
gcj-dbtool(1) - Manipulate class file mapping databases for
gcj-dbtool is a tool for creating and manipulating class file mapping databases. libgcj can use these databases to find a shared library corresponding to the by





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