Closed this-kramer closed 3 years ago
Do we maybe want to add a range check for the BigInteger to preserve the previous behavior of throwing an exception for out of bounds values?
Do we maybe want to add a range check for the BigInteger to preserve the previous behavior of throwing an exception for out of bounds values?
Good point! Can you implement that or should I do it?
Reason for this PR:
BigInteger:intValueExact()
which is [not supported by Android Version < S](https://developer.android.com/reference/java/math/BigInteger#intValueExact())Changes in this PR:
BigInteger:intValue()
plus some additional checks to emulate the behavior ofintValueExact()