# Calculated questions' automatic scientific notation conversion threshold too low

XMLWordPrintable

#### Details

• Type: Bug
• Status: CLOSED
• Priority: Major
• Resolution: Fixed
• Affects Version/s: 11.2
• Fix Version/s:
• Component/s:
• Labels:
• 12 status:
Resolved
• 11 status:
Resolved
• Previous Issue Keys:
SAM-3227

#### Description

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 -SAM-2711-, calculated questions automatically convert any number larger than 10000 to scientific notation, i.e. 1E4

The conversion can create a really ridiculous-looking 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:

1. In a site with at least one student/member, create a quiz and add a Calculated Question.
2. 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```
3. Save the question.
4. Publish the quiz.
5. 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.

#### People

• Assignee:
Matthew Jones
Reporter:
Tiffany Stull