fdim, fdimf, fdiml - positive difference


   #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


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


   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.


   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.


   These functions first appeared in glibc in version 2.1.


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

   │InterfaceAttributeValue   │
   │fdim(), fdimf(), fdiml() │ Thread safety │ MT-Safe │


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




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

More Linux Commands

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

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

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

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

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

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

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

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

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

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

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

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.