date and time created 83/01/21 11:18:15 by dlw
authorDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Sat, 22 Jan 1983 03:18:15 +0000 (19:18 -0800)
committerDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Sat, 22 Jan 1983 03:18:15 +0000 (19:18 -0800)
SCCS-vsn: usr.bin/f77/libF77/r_nint.c 1.1

usr/src/usr.bin/f77/libF77/r_nint.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/f77/libF77/r_nint.c b/usr/src/usr.bin/f77/libF77/r_nint.c
new file mode 100644 (file)
index 0000000..40cfd19
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ *     "@(#)r_nint.c   1.1"
+ */
+
+double r_nint(x)
+float *x;
+{
+double floor();
+
+return( (*x)>=0 ?
+       floor(*x + .5) : -floor(.5 - *x) );
+}