home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
gnu
/
man
/
cat3
/
modf.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
1KB
|
67 lines
MODF(3) UNIX Programmer's Manual MODF(3)
NNAAMMEE
mmooddff - extract signed integral and fractional values from floatingpoint
number
SSYYNNOOPPSSIISS
##iinncclluuddee <<mmaatthh..hh>>
_d_o_u_b_l_e
mmooddff(_d_o_u_b_l_e _v_a_l_u_e, _d_o_u_b_l_e _*_i_p_t_r)
DDEESSCCRRIIPPTTIIOONN
The mmooddff() function breaks the argument _v_a_l_u_e into integral and fraction
al parts, each of which has the same sign as the argument. It stores the
integral part as a _d_o_u_b_l_e in the object pointed to by _i_p_t_r.
RREETTUURRNN VVAALLUUEESS
The mmooddff() function returns the signed fractional part of _v_a_l_u_e.
SSEEEE AALLSSOO
frexp(3), ldexp(3), math(3)
SSTTAANNDDAARRDDSS
The mmooddff() function conforms to ANSI C3.1591989 (``ANSI C'').
BSD Experimental June 29, 1991 1