We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Scala 2.11.8 math.round(Double.NaN * 20d) / 20d returns 0 Would it make more sense to return Double.NaN?
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-10063?orig=1 Reporter: Tri Nguyen Affected Versions: 2.11.8
Sorry, something went wrong.
@SethTisue said:
scala> java.lang.Math.round(Double.NaN) res3: Long = 0
Even if we don't think this is the “right” answer, in general scala.math just wraps the Java stuff.
No branches or pull requests
On Scala 2.11.8
math.round(Double.NaN * 20d) / 20d
returns 0
Would it make more sense to return Double.NaN?
The text was updated successfully, but these errors were encountered: