1 /* 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 * @(#)r_int.c 5.2 07/08/85 7 */ 8 9 float r_int(x) 10 float *x; 11 { 12 double floor(); 13 14 return( (*x >= 0) ? floor(*x) : -floor(- *x) ); 15 } 16