.\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" the American National Standards Committee X3, on Information .\" Processing Systems. .\" .\" %sccs.include.redist.man% .\" .\" @(#)modf.3 8.1 (Berkeley) 06/04/93 .\" .Dd .Dt MODF 3 .Os .Sh NAME .Nm modf .Nd extract signed integral and fractional values from floating-point number .Sh SYNOPSIS .Fd #include .Ft double .Fn modf "double value" "double *iptr" .Sh DESCRIPTION The .Fn modf function breaks the argument .Fa value into integral and fractional parts, each of which has the same sign as the argument. It stores the integral part as a .Em double in the object pointed to by .Fa iptr . .Sh RETURN VALUES The .Fn modf function returns the signed fractional part of .Fa value . .Sh SEE ALSO .Xr frexp 3 , .Xr ldexp 3 , .Xr math 3 .Sh STANDARDS The .Fn modf function conforms to .St -ansiC .