- Posts: 5
- Thank you received: 0
Change decimal seperator for equation question
I am struggleing with a problem related to country specific decimal seperators. I am building a survey for German participants. The survey includes a couple of lotteries, where depending on their answers, participants win money. I use equation questions to calculate how much money each participant wins and the result is displayed in a "Text display" question. Below is an english translation of the "text display" question:
The computerized random number generator has drawn Task 1 for payoff. Based on your decision in Task 1 the computerized random number generator has drawn a payoff of payout1B.shown ECU! For 1 ECU you receive 0.47$. Therefore an amount of payout1B.shown * 0.47$ results. For answering the questionnaire you will receive an additional 2.84$.
As you can see, the text display also involves some calculations (e.g. payout1B.shown*0.47), which refer to the results of previous hidden equation questions.
Now for the German version I would like to display "Comma" instead of a period. However, although I specified comma as a seperator in the survey settings, equation questions do not follow this rule.
Does anyone have an idea how to address this problem?
Thank you very much.
For the german display put fixnum(variable) around the variable.
thank you very much for your help. Could you specify where I have to apply this code. Shall I apply it to the equation question or the text display question e.g. fixnum(payout1B.shown)