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

Should the counting functions return an integer instead of a number #1090

Open christianp opened 3 months ago

christianp commented 3 months ago

The functions comb, perm, gcd and lcm work on integers and return integers. They should return values with the type integer instead of number.

Even though "integer" values can be automatically cast to "number" values, this could be a breaking change if any questions currently rely on something that would be sensitive to a later value having more precision.