1*61111Sbostic.\" Copyright (c) 1991, 1993 2*61111Sbostic.\" The Regents of the University of California. All rights reserved. 348902Scael.\" 450313Sbostic.\" This code is derived from software contributed to Berkeley by 550313Sbostic.\" the American National Standards Committee X3, on Information 650313Sbostic.\" Processing Systems. 750313Sbostic.\" 848902Scael.\" %sccs.include.redist.man% 948902Scael.\" 10*61111Sbostic.\" @(#)modf.3 8.1 (Berkeley) 06/04/93 1148902Scael.\" 1248902Scael.Dd 1348902Scael.Dt MODF 3 1448902Scael.Os 1548902Scael.Sh NAME 1648902Scael.Nm modf 1748902Scael.Nd extract signed integral and fractional values from floating-point number 1848902Scael.Sh SYNOPSIS 1948902Scael.Fd #include <math.h> 2048902Scael.Ft double 2148902Scael.Fn modf "double value" "double *iptr" 2248902Scael.Sh DESCRIPTION 2348902ScaelThe 2448902Scael.Fn modf 2548902Scaelfunction breaks the argument 2648902Scael.Fa value 2748902Scaelinto integral and fractional parts, each of which has the 2848902Scaelsame sign as the argument. 2948902ScaelIt stores the integral part as a 3048902Scael.Em double 3148902Scaelin the object pointed to by 3248902Scael.Fa iptr . 3348902Scael.Sh RETURN VALUES 3448902ScaelThe 3548902Scael.Fn modf 3648902Scaelfunction returns the signed fractional part of 3748902Scael.Fa value . 3848902Scael.Sh SEE ALSO 3948902Scael.Xr frexp 3 , 4048902Scael.Xr ldexp 3 , 4148902Scael.Xr math 3 4248902Scael.Sh STANDARDS 4348902ScaelThe 4448902Scael.Fn modf 4548902Scaelfunction conforms to 4648902Scael.St -ansiC . 47