I am looking for an easy way to remove Decimals in eLearnings. I have tried multiplying to reach the 7th decimal to round up, however, it did not work correctly.
Is there a checkbox somewhere I have missed to turn this off or Does anyone have any tricks for this?
Are you looking to remove them from the Results slide? Unfortunately there isn't a way to do so - they're included as a part of the Results calculation.
Thank you for reaching out! Yes, attempting to remove decimals from the results slide. We have encountered a few problems with grades with decimals not recording in our LMS. The LMS does not recognize the decimals and therefore errors occur and grades are not recording.
I'll have to defer to the community for additional help, as editing the Results variable is outside the scope of our support - but Brian's suggestion of needing to use Javascript is the likely path. You can begin by taking a look at the Javascript best practices here.
6 Replies
Use JavaScript.
Hi Landy,
Are you looking to remove them from the Results slide? Unfortunately there isn't a way to do so - they're included as a part of the Results calculation.
Hello,
Thank you for reaching out! Yes, attempting to remove decimals from the results slide. We have encountered a few problems with grades with decimals not recording in our LMS. The LMS does not recognize the decimals and therefore errors occur and grades are not recording.
Do you have any recommendations?
Thank you!
What would the script be for removing the decimals?
var n = 12.34;
parseInt(n,10) returns 12 in base via javascript
You'd need to get "n" from the SL player
Hi Landy,
I'll have to defer to the community for additional help, as editing the Results variable is outside the scope of our support - but Brian's suggestion of needing to use Javascript is the likely path. You can begin by taking a look at the Javascript best practices here.
This discussion is closed. You can start a new discussion or contact Articulate Support.