RFR: 8366478: BigDecimal roots [v9]
Raffaello Giulietti
rgiulietti at openjdk.org
Fri Oct 24 15:51:44 UTC 2025
On Fri, 24 Oct 2025 10:35:20 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:
>
> Correct call to rootn() in sqrt()
I'm also wondering if we should restrict n to |n| ≤ 999'999'999, as in pow().
This would allow users of BigDecimal to implement corrective actions, as in the schema above, by themselves.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27148#issuecomment-3443841507
More information about the core-libs-dev
mailing list