1*47940Sbostic /*- 2*47940Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*47940Sbostic * All rights reserved. 422895Skre * 5*47940Sbostic * %sccs.include.proprietary.c% 610487Sdlw */ 710487Sdlw 8*47940Sbostic #ifndef lint 9*47940Sbostic static char sccsid[] = "@(#)h_dnnt.c 5.2 (Berkeley) 04/12/91"; 10*47940Sbostic #endif /* not lint */ 11*47940Sbostic h_dnnt(x)1210487Sdlwshort h_dnnt(x) 1310487Sdlw double *x; 1410487Sdlw { 1510487Sdlw double floor(); 1610487Sdlw 1710487Sdlw return( (*x)>=0 ? 1810487Sdlw floor(*x + .5) : -floor(.5 - *x) ); 1910487Sdlw } 20