Floating point consistency

Issue #258