I would like to use and show the number 0.0000001. Since I use it repeatedly in the problem, I would like to make it a number element and refer to it over and over again, for easier modification later. That’s fine, but I can’t figure out how to display it as 0.0000001.
It displays as 1 times 10^-7, even if I try displayDecimals=7 and padZeros, or if I try displayDigits=8 and padZeros then I get 1.0000000 times 10^-7.
I can imagine in some classes wanting students to come up with the scientific notation for a given decimal, or giving scientific notation and wanting students to enter the decimal, so it seems like this is something that should be possible. Is it?
Ugh, I’m not finding a way to get it to display 0.0000001! Strange how no one has encountered this before. I made an issue.
The only workaround I can think of is to use <text name="n">0.0000001</text>. You can use that as a number in mathematical expressions, but those results will start displaying in scientific notation if it is small. I hope you just need the constant 0.0000001, not some number that is calculated from other numbers. I’m not sure how to get 0.0000001 if it comes from a calculation.
It appears I can do something like
<text name="displaytolerance">0.0000001</text>
<number name="tolerance">$displaytolerance</number>
and then use $displaytolerance within m tags in the problem statement, and use $tolerance for calculations and answer checking.
That works for my specific use case, but it seems to me that it should be possible in general to choose which kind of display to use and which kind of answer students enter.
Yes, that should work. Sorry for the hassle!