scala> Seq(1.0, Double.NaN, 2.5E-4).max res2: Double = 2.5E-4 From a user point of view it would be great if this operation could return NaN.