ReactOS 0.4.16-dev-2216-ga08d639
round.c File Reference
#include <math.h>
Include dependency graph for round.c:

Go to the source code of this file.

Functions

double round (double arg)
 

Function Documentation

◆ round()

double round ( double  arg)

Definition at line 10 of file round.c.

11{
12 if (arg < 0.0)
13 return ceil(arg - 0.5);
14 else
15 return floor(arg + 0.5);
16}
_ACRTIMP double __cdecl ceil(double)
Definition: ceil.c:18
_ACRTIMP double __cdecl floor(double)
Definition: floor.c:18