Add define for Kirk Smith's USR Courier driver. Change default baud
[unix-history] / usr / src / usr.bin / f77 / libF77 / d_nint.c
CommitLineData
c2a6b676 1/*
75fd4b39
RE
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)d_nint.c 5.1 %G%
c2a6b676
DW
7 */
8
9double d_nint(x)
10double *x;
11{
12double floor();
13
14return( (*x)>=0 ?
15 floor(*x + .5) : -floor(.5 - *x) );
16}