Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27139

mathslib used by gradebook incorrectly evaluating expressions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1
    • 1.9.8
    • Gradebook, Libraries
    • None
    • MOODLE_19_STABLE
    • MOODLE_21_STABLE
    • Moderate

      There are errors in maths expression evaluation by mathslib as used by gradebook.

      'pi() * 5', or pi() followed by any over operation generates an error when trying to convert to postfix. pi is the only user defined function with no operands, seems to be an error in the interpreter here.

      Also '-8*(5/2)^2' is evaluated as -18 instead of -50.

            jamiesensei Jamie Pratt (Inactive)
            jamiesensei Jamie Pratt (Inactive)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.