// !LANGUAGE: +ProperIeee754Comparisons fun ltDD(x: Comparable, y: Double) = x is Double && x < y fun ltCD(x: Comparable, y: Double) = x < y fun box(): String { val Z = 0.0 val NZ = -0.0 if (ltDD(NZ, Z)) return "Fail 1" if (!ltCD(NZ, Z)) return "Fail 2" return "OK" }