Break into fractional and integral parts.
The modff functions break the argument value into integral and fractional parts, each of which has the same type and sign as the argument. They store the integral part (in floating-point format) in the object pointed to by iptr.
- Parameters
-
x | Floating point value to break into parts. |
iptr | Pointer to an object (of the same type as x) where the integral part is stored with the same sign as x. |
- Returns
- The modff functions return the signed fractional part of value.