Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4978242

Add Number.pow(double)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • x86
    • windows_xp



      Name: jl125535 Date: 01/14/2004


      A DESCRIPTION OF THE REQUEST :
      I see BigInteger has a pow() method that takes an int argument, but it would be EXTEREMLY helpful, especially in the scientific world, if there was another pow() method that accepted a float or double as a param.

      Also BigDecimal doesn't even have a pow() function!


      JUSTIFICATION :
      One main reason would be to pass .5 to allow for the sqrt() of a BigInteger or BigDecimal. So if the pow() method with a double or float parameter is not possible could a sqrt() function be added to the method list of BigInteger or BigDecimal?

      Unfortunately, java.lang.Math.pow() is insufficient for gigantic numbers.
      (Incident Review ID: 225220)
      ======================================================================

            darcy Joe Darcy
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: