Skip to content

[fix] Account for rounding errors on float representing version of gmsh file

Markus Blatt requested to merge bugfix/gmshreader-version-i386 into master

2.2 is not directly representable as a float and doing comparison with it gives surprising results on i386. Basically, the 2.2 in the header of the gmsh files might actually result in a float that is larger than 2.2

Hence we now make sure that the float representing the version is smaller than 2.2001

Edited by Markus Blatt

Merge request reports