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

More
2 months 5 days ago - 2 months 5 days 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: 2 months 5 days ago by sunny01. Reason: typo

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
2 months 4 days 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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!