fdim(3M)fdim(3M)NAMEfdim(), fdimf(), fdiml(), fdimw(), fdimq() - positive difference func‐
tions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function determines the positive difference between its arguments.
Integrity Server Only
is a version of it takes arguments and returns a result.
is a version of it takes arguments and returns a result.
is an version of it takes arguments and returns an result.
is equivalent to on HP-UX systems.
USAGE
To use this function, compile either with the default option or with
the and options. To use (for Integrity servers) or compile with the
option. Make sure your program includes Link in the math library by
specifying on the compiler or linker command line.
RETURN VALUE
The function returns the positive difference between x and y.
If x y, returns x y (and raises any exceptions resulting from the sub‐
traction).
If x y, returns +zero.
If x or y is NaN, returns NaN.
If both arguments are NaNs, returns NaN.
returns a positively signed infinity in lieu of a value whose magnitude
is too large, and raises the overflow and inexact exceptions.
ERRORS
No errors are defined.
SEE ALSOfdim(3M), fmin(3M), math(5).
STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arith‐
metic'')
fdim(3M)