RFR: 8366478: BigDecimal roots

Raffaello Giulietti rgiulietti at openjdk.org
Wed Oct 15 10:13:23 UTC 2025


On Mon, 8 Sep 2025 16:51:33 GMT, fabioromano1 <duke at openjdk.org> wrote:

>> An implementation of `BigDecimal.nthRoot(int, MathContext)`.
>
> @rgiulietti Here is the PR.

@fabioromano1 In the comments there are claims about the relative errors. Two questions arise:
* How were the bounds determined? There seems to be no indication in the comments provided so far.
* How much code would be needed to attain correct rounding in all modes?

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

PR Comment: https://git.openjdk.org/jdk/pull/27148#issuecomment-3405630102


More information about the core-libs-dev mailing list