Commit | Line | Data |
---|---|---|
8bb980a3 C |
1 | MODF(3) BSD Programmer's Manual MODF(3) |
2 | ||
3 | N\bNA\bAM\bME\bE | |
4 | m\bmo\bod\bdf\bf - extract signed integral and fractional values from floating-point | |
5 | number | |
6 | ||
7 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
8 | #\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<m\bma\bat\bth\bh.\b.h\bh>\b> | |
9 | ||
10 | _\bd_\bo_\bu_\bb_\bl_\be | |
11 | m\bmo\bod\bdf\bf(_\bd_\bo_\bu_\bb_\bl_\be _\bv_\ba_\bl_\bu_\be, _\bd_\bo_\bu_\bb_\bl_\be _\b*_\bi_\bp_\bt_\br); | |
12 | ||
13 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
14 | The m\bmo\bod\bdf\bf() function breaks the argument _\bv_\ba_\bl_\bu_\be into integral and fraction- | |
15 | al parts, each of which has the same sign as the argument. It stores the | |
16 | integral part as a _\bd_\bo_\bu_\bb_\bl_\be in the object pointed to by _\bi_\bp_\bt_\br. | |
17 | ||
18 | R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS | |
19 | The m\bmo\bod\bdf\bf() function returns the signed fractional part of _\bv_\ba_\bl_\bu_\be. | |
20 | ||
21 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
22 | frexp(3), ldexp(3), math(3) | |
23 | ||
24 | S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS | |
25 | The m\bmo\bod\bdf\bf() function conforms to ANSI C X3.159-1989 (``ANSI C ''). | |
26 | ||
27 | 4.4BSD June 4, 1993 1 |