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
200 stars 118 forks source link

When the default locale is european, substituting numbers into expressions goes wrong #864

Closed christianp closed 1 year ago

christianp commented 2 years ago

Reported by Julia Goedecke: expression("{x}y"), when x = 6/5, produces expression("6,5y"), which isn't a valid JME expression.

Using European number notation in JME would relate to #677.

I think here, expression should maybe work a bit like safe and override the substitution logic, forcing it to use the plain-en notation style.