mirror of
https://github.com/moodle/moodle.git
synced 2025-04-10 02:44:10 +02:00
With significant-digits presentation mode, NAN would be formatted as 'NAN' followed by zeroes, which looks silly, and +INF would cause an execution timeout as Moodle tries to divide +∞ by 10 until it becomes less than 1, which can happen in a divide-by-zero situation. Note that the user can't answer NAN or INF to any question, but at this at least now looks consistent and also doesn't break Moodle in the case of +INF.