Skip to main content
Participant
June 9, 2023
Answered

Issues with rounding variables

  • June 9, 2023
  • 1 reply
  • 239 views

I setup a variable for interim quiz scoring slides and when it displays it does so with many decimal places. When I insert the variable I limited the length to 2. Any ideas of other ways to do this? The advanced action for scoring is on the Captivate blog link above.

This topic has been closed for replies.
Correct answer Lilybiri

You are using one of my blog post workflows. Editing the length of the inserted variable will not help for HTML output, nor will restricting the size of the text container. You need to use JavaScript to format the variable. You can find a script for that in this blog post:

https://blog.lilybiri.com/percentage-progress-indicator-non-linear-course-solution-2

It is at the end.

1 reply

Lilybiri
LilybiriCorrect answer
Legend
June 9, 2023

You are using one of my blog post workflows. Editing the length of the inserted variable will not help for HTML output, nor will restricting the size of the text container. You need to use JavaScript to format the variable. You can find a script for that in this blog post:

https://blog.lilybiri.com/percentage-progress-indicator-non-linear-course-solution-2

It is at the end.