140865Sbostic /*- 2*62096Sbostic * Copyright (c) 1979, 1993 3*62096Sbostic * The Regents of the University of California. All rights reserved. 440865Sbostic * 540865Sbostic * %sccs.include.redist.c% 640865Sbostic */ 71697Smckusick 840865Sbostic #ifndef lint 9*62096Sbostic static char sccsid[] = "@(#)ROUND.c 8.1 (Berkeley) 06/06/93"; 1040865Sbostic #endif /* not lint */ 111697Smckusick 123028Smckusic long ROUND(value)131697SmckusickROUND(value) 141697Smckusick 151697Smckusick double value; 161697Smckusick { 172960Smckusic if (value >= 0.0) 182960Smckusic return (long)(value + 0.5); 192960Smckusic return (long)(value - 0.5); 201697Smckusick } 21