Check that an error is not created due to rounding with GCC 7.2.0. Closes #400 See merge request !514