ReactOS 0.4.16-dev-252-g9ccafe8
roundf.c File Reference
#include <math.h>
Include dependency graph for roundf.c:

Go to the source code of this file.

Functions

float roundf (float arg)
 

Function Documentation

◆ roundf()

float roundf ( float  arg)

Definition at line 10 of file roundf.c.

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