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.

Dan

that code should work if you want to round to the nearest whole percent (and right is a number).

1. Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2)

2. Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2)

3. math.round and math.ceil etc. do not work in flash 8!

4. FA: 1-Day-Left: 6 Math Books - 4 Math CDROMs - Algebra, Discrete Math, Calculus, more...

5. Is there a way to have math that is not "display math" look like display math?

6. Is there a way to have math that is not "display math" look like display math?

7. Is there a way to have math that is not "display math" look like ?display math?

8. Math.Round and SQL Server Round

10. How do I use math.round to round a number to 3 decimal points?

11. How do I use math.round to round a number to 3 decimal points?

12. Bad math when using * operator along with Math.pow

13. Error on Book: Advanced Eng Math using Math and Matlab ???

14. Free math' app' threatens commercial math' app's

15. Why can I not use: Math a=new Math();

2 post • Page:**1** of **1**