Is there code I need to add to the Calculate Score action to get a whole number instead of a decimal?
This particular exam has 12 questions; I have the final score variable set to multiply by 100, and then a final score variable to divide by 12.
There are two rounding methods you can use to get a non-decimal value, Round Variable which rounds to the nearest whole number up or down, and Round Down Variable, which always rounds down to the next lowest whole number. So after you’ve divided by 12, add another action that rounds the same variable using one of those two methods. See attached screen capture for where to find them.
This post has received 1 vote up.
This reply was modified 8 months, 3 weeks ago by Wendy Miller.