ReactOS 0.4.15-dev-8064-gdaf8068
roundf.c
Go to the documentation of this file.
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
10float roundf(float arg)
11{
12 if (arg < 0.0)
13 return ceilf(arg - 0.5);
14 else
15 return floorf(arg + 0.5);
16}
#define ceilf(x)
Definition: mymath.h:62
#define floorf(x)
Definition: mymath.h:65
float roundf(float arg)
Definition: roundf.c:10