Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12421 When a create a data set for a calculated question with 1 decimal, whole numbers don't keep the decimal.
  3. MDL-12503

The function generate_dataset_item() of calculated question type has a bug on loguniform option

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6
    • 1.6.7, 1.7.5, 1.8.5, 1.9.1, 2.0
    • Quiz
    • None
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      The function generate_dataset_item() does not generate correclty the dataset_item() in the loguniform option as it use the decimal paramter as a numbre of significant figure. So is decimal is set to 0 the result is 0...
      A bug unnoticed since the CREATION of this question type.
      This is why I set to 1.6. but could be 1.5.
      As it was unnoticed I will not merge to 1.5.

      Attachments

        Activity

          People

            ppichet Pierre Pichet
            ppichet Pierre Pichet
            Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Apr/08