moodleou / moodle-qtype_varnumericset

Question type for Moodle - for numeric questions with variable and expression evaluation. All values are precalculated although a question can have several variants with different variable values for each variant.
7 stars 13 forks source link

Thousands and decimal separators are not localized #18

Open ewout opened 11 years ago

ewout commented 11 years ago

We have a fix (we think...) for the number in student's answers: http://git.atp.usp.br/moodle.git/commitdiff/4d5649a620901b134dbf489d870c50aff4b5515e

However, there is a remaining issue with using commas in the correct answer or in variants.

timhunt commented 11 years ago

It is not that simple. Think about what happens in a multi-national course, where an English teacher re-grades a French student's quiz attempt (and other similar scenarios).

We got it very close to right in qtype_numerical, but that is still not exactly right.

It would be great if you could solve this, but I know how hard it is. Good luck.

andreumarti commented 4 years ago

As explained in https://docs.moodle.org/dev/Decimal_separator the behaviour expected for the "qtype_varnumericset" should be the same as "qtype_numerical" does. Depending on the language used, a point or a coma should be accepted as a decimal separator. Whilst "qtype_numerical" works right, "qtype_numerical" doesn't. Thanks

andreumarti commented 4 years ago

Tim, I've ssen your answer: https://moodle.org/mod/forum/discuss.php?d=340313#p1372151 thank you