United States-English |
|
|
HP-UX Reference > Ffdim(3M)HP-UX 11i Version 3: February 2007 |
|
NAMEfdim(), fdimf(), fdiml(), fdimw(), fdimq() — positive difference functions DESCRIPTIONThe fdim() function determines the positive difference between its arguments. Integrity Server Onlyfdimf() is a float version of fdim(); it takes float arguments and returns a float result. fdiml() is a long double version of fdim(); it takes long double arguments and returns a long double result. fdimw() is an extended version of fdim(); it takes extended arguments and returns an extended result. fdimq() is equivalent to fdiml() on HP-UX systems. USAGETo use this function, compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use (for Integrity servers) fdimw() or fdimq(), compile with the -fpwidetypes option. Make sure your program includes <math.h>. Link in the math library by specifying -lm on the compiler or linker command line. RETURN VALUEThe fdim() function returns the positive difference between x and y. If x > y, fdim() returns x - y (and raises any exceptions resulting from the subtraction). If x <= y, fdim() returns +zero. If x or y is NaN, fdim() returns NaN. If both arguments are NaNs, fdim() returns NaN. fdim() returns a positively signed infinity in lieu of a value whose magnitude is too large, and raises the overflow and inexact exceptions. |
Printable version | ||
|