Don't do (X != Y) ? X : Y -> X for floating-point values; it doesn't