JDK-8077587 : BigInteger Roots
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 8u40,24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-11
  • Updated: 2025-10-24
  • Resolved: 2025-09-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b15Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
It would be nice to be able to do nth roots with BigInteger.

JUSTIFICATION :
There are many applications where finding the square root is appropriate. Certain factorization algorithms require such a feature, for example.



Comments
Changeset: ab12fbfd Branch: master Author: Fabio Romano <fabio19298@gmail.com> Committer: Raffaello Giulietti <rgiulietti@openjdk.org> Date: 2025-09-08 16:10:22 +0000 URL: https://git.openjdk.org/jdk/commit/ab12fbfda2c364bb16ddf03b923989639f437f6a
08-09-2025

Note if BigDecimal root-ing is added later, per IEEE 754-2019, the preferred exponent of the operation is: Q(rootn(x, n)) is floor(Q(x)/n)
21-05-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24898 Date: 2025-04-26 16:15:29 +0000
26-04-2025

Closing this as a duplicate of JDK-8032027.
13-04-2015