Forum Discussion
Results Slide Percent no Decimal Points
I'm really surprised Storyline still doesn't round up percentages by default, even with the requests for this feature going back 6-7 years.
It's an industry standard in elearning courses, and is an issue raised again and again by our many clients.
- jackkeena5 years agoCommunity Member
Hi Karen - It would appear this is still an issue.
The previous fixes mentioned do no seem to work anymore. I think it has some thing to do with SL360 not allowing the user to edit built in variables such as Results.ScorePercent.The easy solution I have found is to use the java script mentioned on page 1 of this thread but you have to make a custom variable first, which you set its value to that of Results.ScorePercent then modify the new variable with the javascript.
I have attached a grab of my triggers from SL and below is the javascript I have used:
var player = GetPlayer();
var score = player.GetVar("ResultsScorePercentRounded");
var n = score.toFixed(0);
player.SetVar("ResultsScorePercentRounded", n);I hope this helps anyone else who comes across this issue down the line.
- LeeWebber4 years agoCommunity Member
Thanks @jack Keena - I had this come up today for a client and this works perfectly in SL360!