|
|
HP-UX Reference > Ffabs(3M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEfabs(), fabsf(), fabsl(), fabsw(), fabsq() — absolute value functions DESCRIPTIONThe fabs() function returns the absolute value of x, |x|. fabsf() is a float version of fabs(); it takes a float argument and returns a float result. USAGETo use fabsf(), compile either with the default -Ae option or with the -Aa option. For PA-RISC only, the -D_HPUX_SOURCE option must be used along with the -Aa option. To use (for Itanium-based systems) fabsl(), fabsw(), or fabsq(), compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use fabsw() or fabsq(), compile with the -fpwidetypes option. To use these functions, make sure your program includes <math.h>, and link in the math library by specifying -lm on the compiler or linker command line. For more information, see the HP-UX Floating-Point Guide. |
|