Math.pow regression with power of 2 values

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: docs

      With power of 2 values Math.pow has reduced performance. The developer can work around the issue with code similar to the one below:

      if (y == 2) {
        return y * y;
      }
      return Math.pow(x, y);

            Assignee:
            Joni Gordon (Inactive)
            Reporter:
            Azeem Jiva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: