1 /* 2 * COPYRIGHT: BSD - See COPYING.ARM in the top level directory 3 * PROJECT: ReactOS CRT library 4 * PURPOSE: Portable implementation of roundf 5 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) 6 */ 7 8 #include <math.h> 9 10 float roundf(float arg) 11 { 12 if (arg < 0.0) 13 return ceilf(arg - 0.5); 14 else 15 return floorf(arg + 0.5); 16 } 17