Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1050

Deprecate "pow(int, long)" and "pow(long,long)" in "ArithmeticUtils"

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.2
    • 4.0
    • None

    Description

      Those two methods uses a "long" for the exponent, but overflow will occur when the exponent is larger than 31 (except for the trivial case where the base is 1).

      See also this thread on the dev ML.

      Attachments

        Activity

          People

            erans Gilles Sadowski
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: