8 lines
128 B
C
8 lines
128 B
C
__attribute__((always_inline)) inline double round(double x)
|
|
{
|
|
if( x > 0.0 )return floor(x + 0.5);
|
|
return ceil(x - 0.5);
|
|
}
|
|
|
|
|