d5fbd93fe6
This was result of comparison commits together (?) with override commits
17 lines
316 B
Kotlin
Vendored
17 lines
316 B
Kotlin
Vendored
// !LANGUAGE: +ProperIeee754Comparisons
|
|
|
|
fun ltDD(x: Comparable<Double>, y: Double) =
|
|
x is Double && x < y
|
|
|
|
fun ltCD(x: Comparable<Double>, 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"
|
|
} |