Welcome to the LimeSurvey Community Forum

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

expression manager - limit decimal places of a shown variable / calculated score

  • sunny01
  • sunny01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago - 5 years 2 months ago #180418 by sunny01
hi, i'm new to this and hope i find help with this problem:

i've a questionnaire and at the end the user gets a result
.
scores are calculated with the expression manager - somewhat like {sum(q1,q2,q3)/3}.

the the last question is text only and shows the results and scores.

but there are several decimal places and I want to limit them to 1.

Instead of e.g. "Balance - you acieved 2,3333333333333 Points" should just be shown ".. 2,3 Points"

Is there any possibility to limit these decimal places?

thanks a lot!!
Last edit: 5 years 2 months ago by sunny01. Reason: typo
The topic has been locked.
More
5 years 2 months ago #180421 by jelo
Did you already try {round(yourvariable,2)} to limit to 2 numbers after the radix?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose