Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Decimal comma instead of point

  • KatharinaFietz
  • KatharinaFietz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 weeks 1 day ago #267839 by KatharinaFietz
Decimal comma instead of point was created by KatharinaFietz
Hello,
I am designing a survey and need a decimal comma instead of a decimal point for numbers. Under Settings -> Text elements, I selected the decimal comma. However, when I calculate numbers based on respondents' responses (for example, I ask them for their weekly wage and then their weekly hours to show them their hourly pay), numbers are still displayed with a dot instead of a comma.
Would there be any solution to it?
Thank you very much in advance, and best!
Katharina

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 weeks 1 day ago #267842 by Joffm
Replied by Joffm on topic Decimal comma instead of point
Hi,
unfortunately the function "number_format" doesn't do it , though it is implemented in php.

But you may use the function "str_replace"
{str_replace('.',',',QMult)}
 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • KatharinaFietz
  • KatharinaFietz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 weeks 1 day ago #267843 by KatharinaFietz
Replied by KatharinaFietz on topic Decimal comma instead of point
Perfect, thank you!!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose