TPCCLIB
Loading...
Searching...
No Matches
libtpcmisc
petc99.c
Go to the documentation of this file.
1
9
/*****************************************************************************/
10
#include "
libtpcmisc.h
"
11
/*****************************************************************************/
12
13
/*****************************************************************************/
20
int
temp_roundf
(
float
e)
21
{
22
#if defined(__STDC_VERSION__) && __STD_VERSION__>=199901L
23
return
(roundf(e));
24
#else
25
if
(e<0.0) {
26
return
(
int
)(e-0.5);
27
}
else
{
28
return
(
int
)(e+0.5);
29
}
30
#endif
31
}
32
/****************************************************************************/
33
34
/****************************************************************************/
35
libtpcmisc.h
Header file for libtpcmisc.
temp_roundf
int temp_roundf(float e)
Definition
petc99.c:20
Generated on Fri Sep 19 2025 13:32:05 for TPCCLIB by
1.12.0