at_wini also needs a pci_reserve() for the pci compatability device, if
[minix3.git] / lib / math / floor.c
blobee0e6de053fb1d9768c2287c6a89b7236eb96820
1 /*
2 * (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
5 * Author: Ceriel J.H. Jacobs
6 */
7 /* $Header$ */
9 #include <math.h>
11 double
12 floor(double x)
14 double val;
16 return modf(x, &val) < 0 ? val - 1.0 : val ;
17 /* this also works if modf always returns a positive
18 fractional part