Files
Arquivotheca.SunOS-4.1.4/usr.lib/libm/C/modf.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

21 lines
293 B
C

#ifndef lint
static char sccsid[] = "@(#)modf.c 1.1 94/10/31 SMI";
#endif
/*
* Copyright (c) 1987 by Sun Microsystems, Inc.
*/
#include <math.h>
double modf(x,iptr)
double x, *iptr ;
{
*iptr = aint(x);
if(finite(x)&&x!=(*iptr))
return x - (*iptr);
else
return copysign(0.0,x);
}