xref: /original-bsd/usr.bin/f77/libF77/r_int.c (revision 8d528b7a)
1 /*-
2  * Copyright (c) 1980 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)r_int.c	5.3 (Berkeley) 04/12/91";
10 #endif /* not lint */
11 
r_int(x)12 float r_int(x)
13 float *x;
14 {
15 double floor();
16 
17 return( (*x >= 0) ? floor(*x) : -floor(- *x) );
18 }
19