Rounding score values | XM Community
Skip to main content
Solved

Rounding score values

  • May 13, 2021
  • 2 replies
  • 417 views

Forum|alt.badge.img+1

Hi,
I set the scoring of my survey to 4 decimal places but I want to show it to the respondents with only two.
I pipped a "Scoring" field like Scoring = ${gr://SC_6RnRMbQCfDhfKyV/Score} , and, of course, it shows me the 4 decimal places. I tried

  1. $e{round(gr://SC_06314PNp2z23wah/Score)}

  2. $e{round(gr://SC_06314PNp2z23wah/Score,2)}

but it doesn't seem to work.
Can you help me with this?

Best answer by Mishraji

It works if you add spaces in the formula as applicable. Try the below:
$e{ round( gr://SC_06314PNp2z23wah/Score , 2 ) }

2 replies

Mishraji
Level 4 ●●●●
Forum|alt.badge.img+18
  • Level 4 ●●●●
  • Answer
  • May 16, 2021

It works if you add spaces in the formula as applicable. Try the below:
$e{ round( gr://SC_06314PNp2z23wah/Score , 2 ) }


Forum|alt.badge.img+1

It works!! Many thanks!