RFR: 8366478: BigDecimal roots [v4]

Joe Darcy darcy at openjdk.org
Fri Oct 17 04:45:02 UTC 2025


On Thu, 16 Oct 2025 19:34:14 GMT, fabioromano1 <duke at openjdk.org> wrote:

> Yes, but this is inconsistent with the definition of _preferred scale_ for `BigDecimal.sqrt()`.

Looks like I included a bug with BigDecimals.sqrt with respect to scaling then. While I noted a correct translation of the IEEE 754 requirement in 

https://bugs.openjdk.org/browse/JDK-4851777?focusedId=13847551&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13847551

that did not get carried over to the BigDecimal.sqrt spec or implementation.

I've filed https://bugs.openjdk.org/browse/JDK-8370057; thanks.

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

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


More information about the core-libs-dev mailing list