TPCCLIB
Loading...
Searching...
No Matches
petc99.c
Go to the documentation of this file.
1
9/*****************************************************************************/
10#include "libtpcmisc.h"
11/*****************************************************************************/
12
13/*****************************************************************************/
20int 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
Header file for libtpcmisc.
int temp_roundf(float e)
Definition petc99.c:20