Update precision and scale while keeping our value the same, and return true if successful.
Update precision and scale while keeping our value the same, and return true if successful.
true if successful, false if overflow would occur
Set this Decimal to the given Decimal value.
Set this Decimal to the given BigDecimal value, inheriting its precision and scale.
Set this Decimal to the given BigDecimal value, with a given precision and scale.
Set this Decimal to the given unscaled Long, with a given precision and scale.
Set this Decimal to the given Int.
Set this Decimal to the given Int. Will have precision 10 and scale 0.
Set this Decimal to the given Long.
Set this Decimal to the given Long. Will have precision 20 and scale 0.
Set this Decimal to the given unscaled Long, with a given precision and scale, and return it, or return null if it cannot be set due to overflow.
A mutable implementation of BigDecimal that can hold a Long if values are small enough.
The semantics of the fields are as follows: - _precision and _scale represent the SQL precision and scale we are looking for - If decimalVal is set, it represents the whole decimal value - Otherwise, the decimal value is longVal / (10 ** _scale)