RFR: 8366478: BigDecimal roots [v20]

Joe Darcy darcy at openjdk.org
Mon Oct 27 04:55:11 UTC 2025


On Sun, 26 Oct 2025 21:05:53 GMT, fabioromano1 <duke at openjdk.org> wrote:

>> An implementation of `BigDecimal.nthRoot(int, MathContext)`.
>
> fabioromano1 has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Code optimization

src/java.base/share/classes/java/math/BigDecimal.java line 2342:

> 2340:      * </ul>
> 2341:      */
> 2342:     private boolean squareRootResultAssertions(BigDecimal result, MathContext mc) {

Hmm.

I'd prefer to see some vestige of this code retained.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27148#discussion_r2464423259


More information about the core-libs-dev mailing list