properly compare float values

this fix is not applicable globally, so no PR.
maybe we can work around this in some other way,
but atm this is the easiest fix for metaflop.