BigDecimal::parseStringWithMode throws ArithmeticException when input argument is not correctly formatted number. This is a suggestion to enhance API and change it to NumberFormatException as a better choice for this matter (BigInteger::parseString is already using NumberFormatException).
Usages:
|
else -> throw ArithmeticException("Invalid (or unsupported) floating point number format: $floatingPointString") |
|
else -> throw ArithmeticException("Invalid (or unsupported) floating point number format: $floatingPointString") |
BigDecimal::parseStringWithModethrowsArithmeticExceptionwhen input argument is not correctly formatted number. This is a suggestion to enhance API and change it toNumberFormatExceptionas a better choice for this matter (BigInteger::parseStringis already usingNumberFormatException).Usages:
kotlin-multiplatform-bignum/bignum/src/commonMain/kotlin/com/ionspin/kotlin/bignum/decimal/BigDecimal.kt
Line 984 in 86b22ce
kotlin-multiplatform-bignum/bignum/src/commonMain/kotlin/com/ionspin/kotlin/bignum/decimal/BigDecimal.kt
Line 1038 in 86b22ce