xref: /csrg-svn/usr.bin/f77/libF77/d_int.c (revision 47940)
1*47940Sbostic /*-
2*47940Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47940Sbostic  * All rights reserved.
422858Skre  *
5*47940Sbostic  * %sccs.include.proprietary.c%
610460Sdlw  */
710460Sdlw 
8*47940Sbostic #ifndef lint
9*47940Sbostic static char sccsid[] = "@(#)d_int.c	5.2 (Berkeley) 04/12/91";
10*47940Sbostic #endif /* not lint */
11*47940Sbostic 
d_int(x)1210460Sdlw double d_int(x)
1310460Sdlw double *x;
1410460Sdlw {
1510460Sdlw double floor();
1610460Sdlw 
1710460Sdlw return( (*x >= 0) ? floor(*x) : -floor(- *x) );
1810460Sdlw }
19