1 Reply Latest reply on May 30, 2007 4:40 PM by kglad

    Math.round and just plain math

      Hi, I'm back with another question.

      I want my exam to show a percentage at the end. I guess I'll concatenate a 'percent sign' at the end, but right now I'm having trouble with the math.

      There are 13 questions. This is what I have:

      score = Math.round(right/13*100);

      The scores are coming out all wrong. Any ideas would be greatly appreciated.