Forum Discussion
A Solution to rounding in Storyline – without using Javascript
- 3 days ago
Hello everyone,
I have some great news to share! We just released another update for Storyline 360. In Update 112, we’ve included essential fixes and new features. One of the new features we’ve included is:
- Simplify reporting with a built-in option that rounds quiz scores to whole numbers.
Launch the Articulate 360 desktop app on your computer to take advantage of this update, and click the Update button next to Storyline 360. You’ll find our step-by-step instructions here.
Please let me know if you need additional help.
Hi Mitch,
Thank you for providing this! When we implemented it we realized if we got a perfect score it was rounding down to 99%. I added a trigger between your step 1 and 2 triggers that says Set floorScore equal to Results.ScorePercent if Results.ScorePercent =100, and also added a condition on your step 3 trigger to say if floorScore does not equal 100. This solved the problem for us.
Hi everyone
This discussion is great, some really useful info!
I'm still slightly stumped with this, I've created a SL using the triggers etc detailed above and it's got rid of the decimal places which is great, however it doesn't seem the maths is right. If I score 4 out of 5 the results slide is telling me I score 79% rather than 80% and I can't work out whats not quite right.
I've attached the file, if anyone can help i'd be very grateful!
Thanks
Mike
- MitchHayashi7 years agoCommunity Member
Hi Michael,
I noticed the same thing after playing around with my original triggers. I now use a much simpler method, though it just gives me a true floor function instead of rounding. I'm sure it can be adjusted to give true rounding, but a floor function works for what I need. Here is the updated version:
Initialize variable floorScore to 0
Slide Triggers on results slide:
Set floorScore = 100 when timeline starts
Subtract 1 from floorScore when floorScore changes if floorScore is > Results.ScorePercent
Then display floorScore on your results slide as the user's score. Attached is your project file with adjusted triggers.
- MichaelBrown27 years agoCommunity Member
Thanks so much Mitch!
- ClaudeFillion-e5 years agoCommunity Member
Ça fonctionne très bien avec 360.
Merci