mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-67151 qtype_calculatedsimple: Support for the scientific format
This commit is contained in:
parent
a1f10c5ec5
commit
9173b83e58
1 changed files with 1 additions and 2 deletions
|
@ -508,8 +508,7 @@ class qtype_calculatedsimple_edit_form extends qtype_calculated_edit_form {
|
|||
$mform->addElement('hidden', "number[{$j}]", '');
|
||||
$mform->setType("number[{$j}]", PARAM_LOCALISEDFLOAT); // Localisation handling has to be done manually.
|
||||
if (isset($this->formdata["number[{$j}]"])) {
|
||||
$number = $this->formdata["number[{$j}]"];
|
||||
$this->formdata["number[{$j}]"] = format_float($number, strlen($number), true, true);
|
||||
$this->formdata["number[{$j}]"] = format_float($this->formdata["number[{$j}]"], -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue