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

Calculated question is not calculating correct when there is a double negative

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 1.6
    • Quiz
    • None
    • Linux
      Apache
      atabase mysql versie 3.23 is vereist en je gebruikt nu versie 4.1.20 OK
      php versie 4.1.0 is vereist en je gebruikt nu versie 4.3.9 OK

      Mysql
    • MOODLE_16_STABLE

      When calculated questions are used and a variable is negative (In this case

      {c} then the outcome is wrong, in our case 0

      70/10- 3= 7-3=7+3=10
      {a} / {b} - {c}

      = ?

      The result becomes 0

      All positive variables calculate correct

      When brackets are place around the (

      {a}

      /

      {b}

      ) -

      {c}

      = ?

      the calculation is correct

            ppichet Pierre Pichet
            friends1234 frank weissman (Inactive)
            Nobody Nobody
            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.