Commit 59682a15 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Replace (double)lround() by round().

parent 7ed4b92e
......@@ -129,7 +129,7 @@ void *Math(void *argument)
break;
case FNINT:
for ( i = 0; i < gridsize; i++ )
array2[i] = DBL_IS_EQUAL(array1[i], missval1) ? missval1 : (double)lround(array1[i]);
array2[i] = DBL_IS_EQUAL(array1[i], missval1) ? missval1 : round(array1[i]);
break;
case SQR:
for ( i = 0; i < gridsize; i++ )
......
......@@ -59,7 +59,7 @@ enum {FT_STD, FT_CONST, FT_FLD, FT_VERT, FT_COORD, FT_1C};
#define MVCOMPOR(x,y) (DBL_IS_EQUAL((x),missval1) ? missval1 : COMPOR(x,y))
static double f_int(double x) { return (int)(x); }
static double f_nint(double x) { return (double)lround(x); }
static double f_nint(double x) { return round(x); }
static double f_sqr(double x) { return x*x; }
static double f_rad(double x) { return x*M_PI/180.; }
static double f_deg(double x) { return x*180./M_PI; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment