Forum Discussion

HarriC's avatar
HarriC
Community Member
11 years ago

Quiz - Score Percent

Hi All,

If on your results slide you reference Score Percent can you round it to the nearest percentage so rather than having 80.66% you would see 81%  ? I can't seem to see how to do it and, for various reasons, javascript will not be possible.

Thank you for any/all help/suggestions

Harri

  • Hi Harri,

    I've done this w/out Javascript, but it does require more triggers. So, depending on the quizzes you have, and the number of questions, you may need to add several triggers.

    For the project I'm working on, there are lessons w/ quizzes w/ 3 questions, 4 questions, 5 questions, and 6 questions.

    I've created a text variable called percent.

    On the results slide, I've placed triggers on the Failure layer that adjust the percent variable = to the rounded number when the timeline starts if the results.score.percent variable = the not rounded number

    For example, the 3 question quiz has two triggers

    Adjust percent variable = 67 when the timeline starts if Results.ScorePercent = 66.66

    Adjust percent variable = 33 when the timeline starts if Results.ScorePercent = 33.33

    I've also changed the reference on the Failure layer to the %percent% instead of the default.

    Not sure if this will work for you, but it's working for us...the client is happy.

  • HarriC's avatar
    HarriC
    Community Member

    Hi Becky,

    Thank you for getting back to me. I was hoping there would be a setting somewhere as I currently have 4 x modules with 15 questions each so that's a lot of triggeres.

    But thank you all the same, it may come in handy for future projects.

    Harri

  • Coming here 8 years later just to ask if this was later implemented as a feature or someone found an easier way to solve same problem.

    Thank you.

  • Hi Ayowale,

    Welcome to the E-Learning Heroes community!

    We currently have a feature request logged for the option to round up percentages to the nearest whole number. I'll add your vote and will be sure to update this discussion if this makes it to our feature roadmap.

  • Still no fix within the Storyline app itself. Including a way to round results scores within Storyline (to 1 or no decimal point) would be appreciated. Some users comment on the decimal points, as it can look a bit odd if it is not rounded. Is it feasible to add a decimal points adjuster for the quiz score percent variable? E.g. as a standard setting on the results slide settings ribbon, or within the module variables screen, implemented in a way that it rounds this after it calculates the number)? Sometimes a module may have more than one such results slides, and in that case, the two variables will have different names e.g. the second will may have a '2' in the variable name by default to keep it unique from the other variable.