Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7174

The ** can be used for exponentiation with PHP versions from 5.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.4.1
    • Labels:
      None
    • Plugin Version:
      4.4
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE

      Description

      This issue is mostly for history and so that if somebody search informations about the problem, he can find them here.

      Since pHP 5.6

      a**b;
      

      is equivalent to pow(a, b);

      As a consequence, without any modification done to the code, it is now possible to use this operator in writing Formulas questions or during attempt for numerical and algebraic answers.

      But this also require a very recent browser as the same change was only done in the browers javascript engines in 2017. So I suggest not to advertise this possibility too much to your students, and instruct them to use the a^b writing to enter answers to formulas questions.

        Attachments

          Activity

            People

            Assignee:
            jmvedrine Jean-Michel Vedrine
            Reporter:
            jmvedrine Jean-Michel Vedrine
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Jan/18