Janko wrote:
Hi o/
I have another question:
I wanted to create an acc meter but it rounds to the whole. Is it possible to create a function that will return the decimal value?
codeAcc: ${((50*n50+100*n100+200*n200+300*(n300+n300g))/(300*(nmiss+n50+n100+n200+n300+n300g)))*100@0}%
[/img]
thx
Acc: ${((50*n50+100*n100+200*n200+300*(n300+n300g))/(300*(nmiss+n50+n100+n200+n300+n300g)))*100@0}%
=>
Acc: ${((50*n50+100*n100+200*n200+300*(n300+n300g))/(300*(nmiss+n50+n100+n200+n300+n300g)))*100@2}%
'@' is followed by the number of decimal places.