Return this number as a scala.math.BigDecimal.
Return this number as a scala.math.BigInt if it's a sufficiently small whole number.
Convert this number to its best scala.Double approximation.
Convert this number to its best scala.Double approximation.
Anything over Double.MaxValue
will be rounded to Double.PositiveInfinity
and anything below
Double.MinValue
is rounded to Double.NegativeInfinity
.
Return this number as a scala.Long if it's a valid scala.Long.
Truncate the number to a scala.Long.
Truncate the number to a scala.Long.
Truncation means that we round toward zero to the closest valid scala.Long. If the number
is 1e99
, for example, this will return Long.MaxValue
.
(Since version 0.9.0) Use toBigDecimal
Universal equality derived from our type-safe equality.
Universal equality derived from our type-safe equality.
Hashing that is consistent with our universal equality.
Hashing that is consistent with our universal equality.
Return this number as a scala.Byte if it's a valid scala.Byte.
Return this number as an scala.Int if it's a valid scala.Int.
Return this number as a scala.Short if it's a valid scala.Short.
Truncate the number to a scala.Byte.
Truncate the number to a scala.Byte.
Truncation means that we round toward zero to the closest valid scala.Byte. If the number
is 1e99
, for example, this will return Byte.MaxValue
.
(Since version 0.9.0) Use toBigDecimal
Truncate the number to an scala.Int.
Truncate the number to a scala.Short.
Truncate the number to a scala.Short.
Truncation means that we round toward zero to the closest valid scala.Short. If the number
is 1e99
, for example, this will return Short.MaxValue
.
(Since version 0.9.0) Use toBigDecimal
A JSON number with optimization by cases.