Forum Discussion
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 point of view I would like the percentage rate to be rounded up or down to the nearest full number.
Is there a way to do this?
Thank you in advance
Rich
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.
70 Replies
- TonyChilversCommunity Member
As Pauly said :)
Glad that this thread was able to assist you as well Sherrie. Thanks for popping in :)
- MikeDelaneyCommunity Member
Thanks for the update, Tony!
- TonyChilversCommunity Member
No problem Mike :)
I should have added that if you use:
player.SetVar("Results.ScorePercent", Math.round(score));
as well it will pass the same rounded figure to the LMS, for some reason, I coudn't get the Results variable to update...
TC
- TonyChilversCommunity Member
I found this thread while looking for a solution to the same problem.
What I did:
1. Insert a numerical variable called myScore
2. Insert a trigger on the results slide adjusting myScore to the value of the Results.ScorePercent.3. Insert a new trigger to Execute JavaScript when the timeline starts
4. Click on the … button, and insert the code below into the panel that opens
var player = GetPlayer();
var score = player.GetVar("myScore");
player.SetVar("myScore", Math.round(score));5. Now edit your Results slide text to display %myScore% instead of %Results.ScorePercent% as below.
Job done :)
Tony C
- NatashaBomba-Community Member
HI. Can you clarify--When you say edit the results slide--should it only say "%myScore% and not the info in the brackets? Or do you keep the brackets and change the text to "MyScore"? Is it a double %% at the end or a single? I assume points or percent refers to the same thing in step 5?
Also, does the trigger to send results to the LMS need to be after the Java Script trigger in the order?
- PaulyBarnes1Community Member
The double percent is because you actually want it to say %. So to read 80%, where 80 is the variable, it would look like this:
%Variable%%
for step 5 I would assume you leave whats in the brackets alone since those are referring to points rather than percentages. I usually delete the entire bracketed area since we do not utilize points.
Also, to answer your final question, the script to send needs to be AFTER the javascript or it will send the incorrect value.
Hope this helps!
- SherrieFrench1Community Member
This is beautiful! Thank you!
- MikeDelaneyCommunity Member
Hey Tony, pretty elegant solution, thanks!
Mike
Love a play by play - so looking forward to seeing it!
Hi Mike,
I'm not certain that folks are still subscribed here, so you may want to reach out to Pauly or others using the "contact me" button on their profile to see if they're able to offer assistance around this issue.
- MikeDelaneyCommunity Member
Hi Ashley, thanks for reaching out. I actually figured this one out and am
planning on posting a play-by-play how to in the near future for people
like me who need the extra visuals and steps.Again, thanks.
Mike
- TeresaVanderposCommunity Member
Hey Mike, was curious if your non-javascript solution was similar to Tony's or not, would be curious to know what you did...
- EdGenCommunity Member
I attempted your suggestion along with many others. Looks like I have to accept that Storyline is not capable of this.
Submitted a feature request.
I am still open for suggestions.
Thanks.
Hi Ed,
Within Storyline I know people round using Javascript to change the slide variable listed but as far as reporting that to your LMS - I'm not certain of the steps there and Javascript is not something I can offer support for.
You may want to review the method in this thread about rounding without Javascript - to see if something like that would work for you.
- EdGenCommunity Member
Absolutely Ashley. I'm using SumTotal as my LMS and the issue is that the quiz is reporting scores with decimals such as 13.33% instead of 13%. Although I can round out the score for the user on the results slide, Storyline still reports the percent with decimals.
Related Content
- 11 months ago