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

   
   Interface                 Attribute      Value   
   
   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/set_mempolicy.2.html
set_mempolicy(2) - set default NUMA memory policy for a proc
set_mempolicy() sets the NUMA memory policy of the calling process, which consists of a policy mode and zero or more nodes, to the values specified by the mode,

manpages/acl_get_qualifier.3.html
acl_get_qualifier(3) - retrieve the qualifier from an ACL en
The acl_get_qualifier() function retrieves the qualifier from the ACL entry indicated by the argument entry_d into working storage and returns a pointer to that

manpages/nmcli.1.html
nmcli(1) - command-line tool for controlling NetworkManager
nmcli is a command-line tool for controlling NetworkManager and reporting network status. It can be utilized as a replacement for nm-applet or other graphical c

manpages/mvwaddnstr.3ncurses.html
mvwaddstr(3ncurses) - add a string of characters to a curses
These functions write the (null-terminated) character string str on the given window. It is similar to calling waddch once for each character in the string. The

manpages/Tcl_Gets.3.html
Tcl_Gets(3) - buffered I/O facilities using channels........
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

manpages/pam_acct_mgmt.3.html
pam_acct_mgmt(3) - PAM account validation management........
The pam_acct_mgmt function is used to determine if the users account is valid. It checks for authentication token and account expiration and verifies access res

manpages/autoconf.1.html
autoconf(1) - Generate configuration scripts (Man Page).....
Generate a configuration script from a TEMPLATE-FILE if given, or configure.ac if present, or else configure.in. Output is sent to the standard output if TEMPLA

manpages/systemd-localed.service.8.html
systemd-localed.service(8) Locale bus mechanism (Man Page)
systemd-localed is a system service that may be used as mechanism to change the system locale settings, as well as the console key mapping and default X11 key m

manpages/pthread_attr_init.3.html
pthread_attr_init(3) - initialize and destroy thread attribu
The pthread_attr_init() function initializes the thread attributes object pointed to by attr with default attribute values. After this call, individual attribut

manpages/clnt_call.3.html
clnt_call(3) - library routines for remote procedure calls
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

manpages/setup.2.html
setup(2) - setup devices and file systems, mount root file s
setup() is called once from within linux/init/main.c. It calls initialization functions for devices and filesystems configured into the kernel and then mounts t

manpages/Tcl_UniCharToLower.3.html
Tcl_UniCharToLower(3) - routines for manipulating the case o
The first three routines convert the case of individual Unicode characters: If ch represents a lower-case character, Tcl_UniCharToUpper returns the correspondin





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