Numerical question filter to accept 1.2*10^-34

Re: Handling units and numerical proposal

Jeff Forssell -
Vastausten määrä: 0
I have the impression that Moodle numerical questions handle . and , (like we have in Sweden) as decimal OK on the student side but I think it is less tolerant when the teacher is putting in the correct patterns. So it doesn't feel like it's a major issue. (Even if we want to make things easy for teacher's too. But there I think good help files and Docs might suffice.)

I'm still trying to find what happens, in which php, when someone answers a numerical question. I've read about where the various bits are stored in the DB, (It was interesting to me that the answer patterns were in a different table from the questions.) but I haven't read anything describing, something like:

When the student hits the submit button quiz.php sees that the answer string is to go to numeric/questiontype and sends the string after trimming trailing and leading whitespace as $trimmedanswer to it ....

Is there any doc like that, or can you tell me a good way of "picking up the trail"?