I need to calculate a value and I found some difficulty to create the right equation.
I would like to know the percent of the precision of clicks.
I have the number of the player's clicks and the number of hits. I believe that's correct if I divide them and multiply by 100, including &"%" after, isn't? I tried to use "round" to eliminate decimal numbers, but I didn't get the correct value?
Other doubt: How can I do to prevent "NaN (if player doesn't click in the screen)?
Thanks in advance