Hi Tim,
Thanks for answering
decsep seems to be properly initialized multiple times when question is displayed during quiz attempt:
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
string(1) ","
as you can see from above output. So the problem must be elsewhere.
I can dump whatever variables you need, just say which ones
EDIT:
Here's a dump of entire initilized question object (long description strings removed for clarity):
qtype_calculatedsimple_question Object
(
[datasetloader] => qtype_calculated_dataset_loader Object
(
[questionid:protected] => 1943
[itemsavailable:protected] => 50
)
[vs] => qtype_calculated_variable_substituter Object
(
[values:protected] => Array
(
[KK] => 832384
[SP] => 2.27
[LR] => 324
[OP] => 3.53
)
[decimalpoint:protected] => ,
[search:protected] => Array
(
[0] => {KK}
[1] => {SP}
[2] => {LR}
[3] => {OP}
)
[safevalue:protected] => Array
(
[0] => (832384)
[1] => (2.27)
[2] => (324)
[3] => (3.53)
)
[prettyvalue:protected] => Array
(
[0] => 832384
[1] => 2,27
[2] => 324
[3] => 3,53
)
[replace] => Array
(
)
)
[synchronised] => 0
[answers] => Array
(
[4864] => qtype_numerical_answer Object
(
[tolerance] => 0.01
[tolerancetype] => 1
[id] => 4864
[answer] => {KK}*(1+({SP}/100))/{LR}+{KK}*(1+({SP}/100))*({OP}/100)/12
[answerformat] => 2
[fraction] => 1.0000000
[feedback] =>
[feedbackformat] => 1
[correctanswerlength] => 0
[correctanswerformat] => 1
)
)
[unitdisplay] => 3
[unitgradingtype] => 0
[unitpenalty] => 0.1000000
[ap] => qtype_numerical_answer_processor Object
(
[units:protected] => Array
(
)
[decsep:protected] => ,
[thousandssep:protected] => ,
[unitsbefore:protected] =>
[regex:protected] =>
)
[shownumcorrect] =>
[id] => 1943
[category] => 183
[contextid] => 1
[parent] => 0
[qtype] => qtype_calculatedsimple Object
(
[wizard_pages_number] => 1
[wizardpagesnumber] => 3
[fileoptions:protected] => Array
(
[subdirs] =>
[maxfiles] => -1
[maxbytes] => 0
)
)
[name] => (removed)
[questiontext] => (removed)
[questiontextformat] => 1
[generalfeedback] =>
[generalfeedbackformat] => 1
[defaultmark] => 1
[length] => 1
[penalty] => 0.3333333
[stamp] => xxxx.xxxxx.pl+120112101842+KYTEJF
[version] => xxxx.xxxxx.pl+120112103713+PLbR3T
[hidden] => 0
[timecreated] => 1326363522
[timemodified] => 1326364628
[createdby] => 666
[modifiedby] => 666
[hints] => Array
(
)
)