A colleague of mine ran into a interesting problem. I do not know if this may be a bug or an unintended design problem. I will attempt at describing the issue with Moodle 2.6.3 when creating calculated questions and nested parenthesis in a formula.
Given the formula (({VNL}-120)/120)*100 and a range of values of 120-145 with shared wild cards.
Description of the problem:
When attempting to create the first data set, Moodle comes up with a default of 1 to 10 for a range of values, with a (random?) value for a Wild card, which is not acceptable in the formula, so a value outside the 120-145, for example 8.1
This creates a problem (ERROR Correct answer : -93.1 % outside limits of true value )
Attempting to correct this is easily done, however, regardless of the number of data sets generated subsequently, the first default data set is still present in the pool, which is a source of a potential error in case you have 99 acceptable data sets, but still the one default incorrect data set present.
Can any one reproduce this problem, and tell us if this is a bug?