numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
197 stars 118 forks source link

Number entry Scientific notation parts mark an answer with whitespace between the significand and the e incorrect without warning #1096

Closed Lycanic closed 2 months ago

Lycanic commented 2 months ago

A basic example is if the correct answer is "1e10", an answer of "1 e10" will submit and be marked incorrect (other spaces, like "1e 10", are considered invalid answers and give a warning when submitted, or are marked correct (eg " 1e10")). The 'interpretedStudentAnswer' appears to be the same in both cases, so I am unsure if the entry with a space represents a 'different' answer.

I can see how a student might add this space for the sake of easier reading.

Relates to #453