*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> modf (3)              
Title
Content
Arch
Section
 

MODF(3)

Contents


NAME    [Toc]    [Back]

     modf - extract signed integral and fractional values from floating-point
     number

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <math.h>

     double
     modf(double value, double *iptr);

DESCRIPTION    [Toc]    [Back]

     The modf() function breaks the argument value into integral and fractional
 parts, each of which has the same sign as the argument.  It stores
     the integral part as a double in the object pointed to by iptr.

RETURN VALUES    [Toc]    [Back]

     The modf() function returns the signed fractional part of value.

SEE ALSO    [Toc]    [Back]

      
      
     frexp(3), ldexp(3), math(3)

STANDARDS    [Toc]    [Back]

     The modf() function conforms to ANSI X3.159-1989 (``ANSI C'').

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
modf Linux extract signed integral and fractional values from floatingpoint number
modf OpenBSD extract signed integral and fractional values from
frexp FreeBSD convert floating-point number to fractional and integral components
frexp Linux convert floating-point number to fractional and integral components
frexp OpenBSD convert floating-point number to fractional and integral components
frexp NetBSD convert floating-point number to fractional and integral components
ldexp Linux multiply floating-point number by integral power of 2
ldexp FreeBSD multiply floating-point number by integral power of 2
ldexp NetBSD multiply floating-point number by integral power of 2
ldexp OpenBSD multiply floating-point number by integral power of 2
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service