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
202 stars 117 forks source link

Default number notation should depend on the locale #806

Closed christianp closed 3 years ago

christianp commented 3 years ago

I think this applies both to the Numbas runtime and the editor, since the "accepted number notation styles" settings are in the editor and don't necessarily match the locale.

Each locale should have a preferred number notation, which is used by default when displaying numbers. This should be available in JS in something like Numbas.locale.preferred_notation, and probably also as a variable in marking algorithms.

christianp commented 3 years ago

Or I suppose one of the options for allowed notation styles could be "local convention", and that would be the default.