Omit decimals of D measure on text summary


Omit decimals of D measure on text summary

Author
Message
Sonja
Sonja
Esteemed Member
Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)

Group: Forum Members
Posts: 12, Visits: 1

Hey there,


I would like to give the participants some feedback on their D measure at the end of the completed IAT. However, I do not really want to have the computed D measure with all decimals appearing on the screen, since this looks rather confusing but I only want to display the first two or three decimals. If I use the function <% round(expressions.d) %>, only the next integer is displayed, without any decimals.



Is there a way how I can display the first two or three decimals, e.g. "Your D measure equals 1.05" instead of "Your D measure equals 1" (when I use the round function), and omit the rest of the 7 or 8 decimals that are returned by default?



Thanks for ideas and comments!


Sonja


Dave
Dave
Supreme Being
Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)

Group: Administrators
Posts: 9.8K, Visits: 46K

Add a new entry to the <expressions> element


<expressions>
/ d2dec = format("%.2f", expressions.d)
[...]
</expressions>


and change <text summary> to refer to the new expression


<text summary>
/ items = ("Your IAT score (D) was <% expressions.d2dec %>, which suggests <% values.magnitude %> automatic preference for <% expressions.preferred %> compared to <% expressions.notpreferred %>.~n~n~nPress the spacebar to complete this session.")
[...]
 </text>


Regards,


~Dave


Sonja
Sonja
Esteemed Member
Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)Esteemed Member (2K reputation)

Group: Forum Members
Posts: 12, Visits: 1

Hi Dave,


thank you so much, it works perfectly.


Have a nice day,


Sonja


Dave
Dave
Supreme Being
Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)Supreme Being (678K reputation)

Group: Administrators
Posts: 9.8K, Visits: 46K

You're welcome. Have a nice day, too.


~Dave


GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search