Forum Discussion
rikapple
11 years agoCommunity Member
Results Slide Percent no Decimal Points
All,
I have a results slide which pulls in data from several other results slide.
The problem is that the results percentage is showing the percentage with decimal points. From a cosmetic po...
PaulyBarnes1
Community Member
I have some javascript code that may probably work for this scenario. Take the code and put it into an Javascript executable trigger on the results page and have it start first.
var player = GetPlayer();
var score = player.GetVar("Results.ScorePercent");
var n = score.toFixed(0);
player.SetVar("Results.ScorePercent", n);
The non javascript workaround can be messy in your triggers pane on the results slide. However, here is another solution. Maybe someday Articulate will make a consideration and have decimals as an option.
shashankkatiyar
8 years agoCommunity Member
Hi Pauly,
Can you just provide a short of example assessment with this Js so that that would be very easy for me to incorporate it.