ReactOS
0.4.16-dev-91-g764881a
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
10
float
roundf
(
float
arg
)
11
{
12
if
(
arg
< 0.0)
13
return
ceilf
(
arg
- 0.5);
14
else
15
return
floorf
(
arg
+ 0.5);
16
}
void
Definition:
nsiface.idl:2307
ceilf
#define ceilf(x)
Definition:
mymath.h:62
floorf
#define floorf(x)
Definition:
mymath.h:65
roundf
float roundf(float arg)
Definition:
roundf.c:10
sdk
lib
crt
math
roundf.c
Generated on Sat Oct 5 2024 06:12:54 for ReactOS by
1.9.6