I have a teacher that wants to create a numerical question where the answer is 40/3; however, he also wants it to be able to accept 13.3 with a +.04 variance. Is there currently a way to do this or is the numeric question type limited to accepting a number (in this case 13.3)? I would be curious how other math teachers handle this issue. Would it be better to use the short answer type and accept 40/3 as a text value and 13.3 as a text value?

I am also curious as to how math teachers handle answers that students need to put in either algebraic or tex format. Do most Math Moodlers simply avoid having the student input answers that are complicated and go with multiple choice?

Any thoughts/advice that I can share with a Moodle-enthusiastic, Geometry teacher would be appreciated.

### Numerical Question with answer as fraction?

Number of replies: 1### Re: Numerical Question with answer as fraction?

Nobody seems to have answered you yet. I was busy at the time. I would like to extend the mathematical question to include expressions, which would even accept fractions, than, of course. Even the format 2 3/4 (interpreted as 2 + 3/4) would be good.

In the meantime, one could use the embedded question, short answer which interprets strings. But one might need a whole "string of strings".

"40/3" "13 1/3" "13.3" etc.

There is a regular expression module by Joseph R that could make that more compact and flexible.

I'm hoping to get together people interested in improving the math questions, maybe your colleague would be interested?

In the meantime, one could use the embedded question, short answer which interprets strings. But one might need a whole "string of strings".

"40/3" "13 1/3" "13.3" etc.

There is a regular expression module by Joseph R that could make that more compact and flexible.

I'm hoping to get together people interested in improving the math questions, maybe your colleague would be interested?