1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" %sccs.include.redist.man% 9.\" 10.\" @(#)modf.3 8.1 (Berkeley) 06/04/93 11.\" 12.Dd 13.Dt MODF 3 14.Os 15.Sh NAME 16.Nm modf 17.Nd extract signed integral and fractional values from floating-point number 18.Sh SYNOPSIS 19.Fd #include <math.h> 20.Ft double 21.Fn modf "double value" "double *iptr" 22.Sh DESCRIPTION 23The 24.Fn modf 25function breaks the argument 26.Fa value 27into integral and fractional parts, each of which has the 28same sign as the argument. 29It stores the integral part as a 30.Em double 31in the object pointed to by 32.Fa iptr . 33.Sh RETURN VALUES 34The 35.Fn modf 36function returns the signed fractional part of 37.Fa value . 38.Sh SEE ALSO 39.Xr frexp 3 , 40.Xr ldexp 3 , 41.Xr math 3 42.Sh STANDARDS 43The 44.Fn modf 45function conforms to 46.St -ansiC . 47