ReactOS 0.4.15-dev-7918-g2a2556c
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}
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)
_Check_return_ _CRTIMP double __cdecl ceil(_In_ double x)