Moodle 3.8
I'd like to produce questions for chemistry using formula qtype.
I use a set in which each element is a molecule describe by its name, its molecular formula, its mass and its solubility.
It looks like :
molecule_set = {["KBr", "bromure de potassium", 119.0, 65.3], ["Cu(NO{_3})_{2}", "nitrate de cuivre(II)", 188.0, 125.0] }; #200 elements at all
Masse and solubility should be interpreted as float but they are interpreted as string since name and formula are strings.
My question is "how to convert string to float in formula qtype"?
Is there an other way to build my question to avoid this problem?
Thanks