Final Score Percentage
January 20, 2017 12:00 AM
Hello,
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.
Discussion (2)
Hi Christina,
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.
undefined

Discussions have been disabled for this post