|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi does anyone of you know the coding for user to key in decimal value (rounded
off to 2 decimal places) and the Flash software generate whether the answer is right or wrong? Also, it will include a diagram with values that make up a Mathematical formula. me please. Hehe. Thank you!! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
One way you can do it is by multiplying the user value and the answer value by
100, then rounding the two values and comparing them... if(Math.round(rightAnswer*100) == Math.round(Number(userAnswer)*100)) { trace("Right Answer"); } else { trace("Wrong Answer); } |
|
![]() |
| Outils de la discussion | |
|
|