modf(3) opendarwin man page | unix.com

Man Page: modf

Operating Environment: opendarwin

Section: 3

MODF(3) 						   BSD Library Functions Manual 						   MODF(3)

NAME
modf -- return integral and fractional parts
SYNOPSIS
#include <math.h> double modf(double value, double *iptr); float modff(float value, float *iptr);
DESCRIPTION
The modf() and modff() break value into integral and fractional parts, each of which has the same sign as the argument. They return the fractional part, and store the integral part (as a floating-point number) in the object pointed to by iptr
SPECIAL VALUES
modf(+-infinity, iptr) returns +-0 and stores +-infinity in the object pointed to by iptr. modf(NaN, iptr) returns a NaN and stores a NaN in the object pointed to by iptr.
SEE ALSO
frexp(3), ldexp(3), math(3)
STANDARDS
The modf() and modff() functions conform to ISO/IEC 9899:1999(E).
BSD
July 24, 2003 BSD
Related Man Pages
modfl(3) - linux
modf(3) - centos
modf(3) - suse
modff(3m) - sunos
modf(3m) - opensolaris
Similar Topics in the Unix Linux Community
Change the numbers
sed replace characters using a wildcard
Compiling problem - AIX 7.2
Ignore Testing Attachment Modal for Quick Reply
Very strange output with casting