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
205 stars 120 forks source link

int ^ decimal should produce a decimal #978

Closed christianp closed 1 year ago

christianp commented 1 year ago

For example, the following JME expression: 10^dec("-19") should produce a value with the type decimal.

At the moment it seems to make a number. We need to add a definition of ^ with signature [TInt, TDecimal].