Decimals | XM Community
Skip to main content
Question

Decimals

  • January 20, 2021
  • 1 reply
  • 327 views

Hi!

When creating a weighted mean score with piped text after a question, I got way too many decimals (3.999992939393939). That why I wanted to create a weighted mean with a maximum of 2 decimals. I read on one of these forums that you should use: $e{round(gr://SC_4OvT2vAMl4JC6ah/WeightedMean, 2 )}
So, that's what I did. Unfortunately, when I preview my survey this expression is invalid. I tried several things, with putting white spaces for instance.
Someone who can help with this?

Thanks!

1 reply

PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • January 20, 2021

hi JosVerheul
Please check your math operations/syntax. Every item in your math equation needs to be separated by a space.
Something like this $e{ round( gr://SC_4OvT2vAMl4JC6ah/WeightedMean, 2) }
here is the support page link