diff --git a/src/core/qgis.h b/src/core/qgis.h index 94253ba7c6f..990114a3f78 100644 --- a/src/core/qgis.h +++ b/src/core/qgis.h @@ -169,7 +169,7 @@ inline bool doubleNearSig( double a, double b, int significantDigits = 10 ) double br = frexp( b, &bexp ); return aexp == bexp && - round( ar * pow( 10, significantDigits ) ) == round( br * pow( 10, significantDigits ) ) ; + ceil( ar * pow( 10.0, significantDigits ) ) == ceil( br * pow( 10.0, significantDigits ) ) ; } /** Wkt string that represents a geographic coord sys