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

SCORM: integer values don't need to be serialised with `with_precision` #1025

Closed christianp closed 11 months ago

christianp commented 11 months ago

integer variable values are currently wrapped with with_precision, because they look like number values. This means that when the attempt is resumed, they're loaded as number values, which can break type-checking for functions that only want an integer. with_precision is redundant for integers, so it shouldn't be used.