ReactOS
0.4.16-dev-823-g9a093ec
round.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 round
5
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
6
*/
7
8
#include <math.h>
9
10
double
round
(
double
arg
)
11
{
12
if
(
arg
< 0.0)
13
return
ceil
(
arg
- 0.5);
14
else
15
return
floor
(
arg
+ 0.5);
16
}
floor
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)
ceil
_Check_return_ _CRTIMP double __cdecl ceil(_In_ double x)
void
Definition:
nsiface.idl:2307
round
#define round(x)
Definition:
opentype.c:47
sdk
lib
crt
math
round.c
Generated on Tue Mar 18 2025 06:13:59 for ReactOS by
1.9.6