Fixed decimal place in calculations

Hello All, I am new to the Forum and relatively new to lectora. I have created a series of quizes in which I calculate a result as a percentage (number correct/number attempted)*100. The vast majority of times this works perfectly. occasionally however I get an answer with a larg number of repeating digits in the display. Is there any way to restrict the answer to say 2 decimal places? The help desk suggested some Javascript code might work and to try the forum out.Thanks in advance for your help.

Discussions have been disabled for this post