in-line code for rounding decimals

Leslie Vaughan avaughan at email.unc.edu
Mon Oct 31 18:06:13 UTC 2005


Hi,

We have feedback in a text display object instead of a feedback display 
object, and have written in-lines for calculating mean accuracy based 
on the number of trials in the block:

1) for the counter inline

if numberdisplay.ACC=1 then
counter=counter+1
Else
counter=counter+0
end if

2) for the calculate inline
c. setAttrib "meanacc", (counter / 15) * 100
c.setAttrib "sumcorr", counter

E-prime is giving accuracy with 6 decimal places. What inline code can 
I use to get it to round to 2 decimal places? Thanks very much, Leslie 
Vaughan



More information about the Eprime mailing list