case classJsNumber(self: BigDecimal) extends JsValue with Product with Serializable
This can also be implemented with as a Double, even though BigDecimal is
more loyal to the json spec.
NOTE: Subtle bugs can arise, i.e.
BigDecimal(3.14) != BigDecimal("3.14")
such are the perils of floating point arithmetic.
Linear Supertypes
Serializable, Serializable, Product, Equals, JsValue, AnyRef, Any
This can also be implemented with as a Double, even though BigDecimal is more loyal to the json spec. NOTE: Subtle bugs can arise, i.e. BigDecimal(3.14) != BigDecimal("3.14") such are the perils of floating point arithmetic.