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
JsNumber should be of BigDecimal when scala-js would support it.
BigDecimal
case class JsNumber(value: BigDecimal) extends JsValue object JsNumber { def apply(n: Int) = new JsNumber(BigDecimal(n)) def apply(n: Long) = new JsNumber(BigDecimal(n)) def apply(n: Double) = n match { case n if n.isNaN => JsNull case n if n.isInfinity => JsNull case _ => new JsNumber(BigDecimal(n)) } def apply(n: BigInt) = new JsNumber(BigDecimal(n)) def apply(n: String) = new JsNumber(BigDecimal(n)) def apply(n: Array[Char]) = new JsNumber(BigDecimal(n)) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
JsNumber should be of
BigDecimal
when scala-js would support it.The text was updated successfully, but these errors were encountered: