| United States-English |
|
|
|
![]() |
HP-UX Reference > Mmodf(3M)HP-UX 11i Version 3: February 2007 |
|
NAMEmodf(), modff(), modfl(), modfw(), modfq() — decompose floating-point number DESCRIPTIONThe modf() function breaks the argument x into integral and fractional parts, each of which has the same sign as the argument. It stores the integral part as a double in the object pointed to by iptr. Integrity Server Onlymodff() is a float version of modf(); it takes float and float * arguments and returns a float result. modfl() is a long double version of modf(); it takes long double and long double * arguments and returns a long double result. modfw() is an extended version of modf(); it takes extended and extended * arguments and returns an extended result. modfq() is equivalent to modfl() on HP-UX systems. USAGETo use (for Integrity servers) modff(), compile either with the default -Ae option or with the -Aa option. To use (for Integrity servers) modfl(), modfw(), or modfq(), compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use (for Integrity servers) modfw() or modfq(), compile also 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 for HP Integrity servers at the following site: http://www.hp.com/go/fp. |
||||||||||||||||||||||||||||
|
|||||||||||||||