3 ms·
Thanks for the link. Apparently, restricted behavior like I expected is reserved for if you use a MathContext. > Instead, for the BigDecimal operations taking
by bsder 2y ago
Thanks for the link.
Apparently, restricted behavior like I expected is reserved for if you use a MathContext.
> Instead, for the BigDecimal operations taking a MathContext parameter, if the MathContext has a nonzero precision, the set of possible representable values for the result is determined by the precision of the MathContext argument.
Very strange. I would have expected something that is going to be mostly used for currency to not do implicit things by default.