repo.or.cz
/
mascara-docs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* added compilers lcc and bcc (linux86)
[mascara-docs.git]
/
compilers
/
linux86-0.16.17
/
libc
/
i386fp
/
modf.c
blob
32325432469e76be29adff9489cbfa40fbe2ae54
1
#include <math.h>
2
3
/* Slooow version. */
4
5
double
modf
(
x
,
pint
)
6
double
x
;
7
double
*
pint
;
8
{
9
if
(
x
>=
0
)
10
*
pint
=
floor
(
x
);
11
else
12
*
pint
=
ceil
(
x
);
13
return
x
- *
pint
;
14
}