
Type: Bug

Status: CLOSED

Priority: Major

Resolution: Fixed

Affects Version/s: 11.2

Fix Version/s: 11.5 [Tentative], 12.0

Component/s: Tests & Quizzes (Samigo)

Labels:

12 status:Resolved

11 status:Resolved

Previous Issue Keys:SAM3227
Note: I'm filing this as a bug because it seems to me to be unexpected, bad behavior, but others may classify it more as a feature request.
As a result of changes made in , calculated questions automatically convert any number larger than 10000 to scientific notation, i.e. 1E4. SAM2711
The conversion can create a really ridiculouslooking question like the following:
A couple spends approximately 13% of their annual income on food. Their combined annual income is $2.6E5. On average, the husband eats twice as much food as his wife. The wife eats approximately $___ worth of food per year.
I understand that the feature was implemented to handle really large numbers, but I can't imagine any accountant would write $2.6E5 instead of $260000! Either the number at which the conversion occurs needs to be MUCH greater, e.g. 1E11, OR the instructor should be able to select (with a check box) to convert the variable values to scientific notation, if desired. The silent conversion makes no sense at all.
Testing Steps:
 In a site with at least one student/member, create a quiz and add a Calculated Question.
 Enter question text that would use relatively large numbers, e.g. the following (pardon me if the formula will actually give incorrect results  I'm not a math person!  I'd appreciate a correction if wrong!):
Question Text: A couple spends approximately {x}% of their annual income on food. Their combined annual income is $[[{y} + {z}]]. On average, the husband eats twice as much food as his wife. The wife eats approximately {{w}} worth of food per month. Ranges of Values: x = 9  17 (0 decimal places) y = 120000  140000 (2 decimal places) z = 120000  140000 (2 decimal places) Formula: w = (({x}/100)*({y} + {z}))/3
 Save the question.
 Publish the quiz.
 Log in as student and take the quiz. Note that the question looks like this:
A couple spends approximately 13% of their annual income on food. Their combined annual income is $2.6E5. On average, the husband eats twice as much food as his wife. The wife eats approximately $___ worth of food per year.
 is depended on by

SAK35864 Bug with using BigDecimal divide without a rounding mode in Calculated Questions
 CLOSED

SAK36586 Use mxParser library instead of SamigoExpressionParser for calculated questions
 Verified

SAK37112 Bug with calculated question's upper threshold on converting to scientific notation
 Verified
 relates to

SAK35284 Calculated Questions. Issues with small and large numbers.
 CLOSED