<div dir="ltr">Hello,<br><br>I am using a modified version of the "VisualScaleAnalog" script which is recording the position of a muse click on a scale.<br><br>Then it displays the recorded "score" to the user.<br><br>What the original script does is this<br><br><span style="color: rgb(68, 68, 68);"> Dim percent as Integer<br> Mouse.GetCursorPos ptPress.X, ptPress.Y<br> percent = 100*((ptPress.X-VAS_SliderDummy.Left)/sw)</span><br><span style="color: rgb(68, 68, 68);"> ...<br> and then it displays "percent"</span><br><br>So the original script would display a score of "75" if the subject clicked on the 3/4th of the scale<br><br>What i want to display is something like "7.5" instead of "75".<br><br>I tried this :<br><br> Dim percent as Integer<br> Dim score as Double<br> Mouse.GetCursorPos ptPress.X, ptPress.Y<br> percent = 100*((ptPress.X-VAS_SliderDummy.Left)/sw)<br> score=CInt(percent)/10<br><span style="color: rgb(68, 68, 68);"> ...<br> and then display "score"</span><br><br>but then it would display something like "7.500121245" instead of just "7.5"<br>how can i format the score so that it shows to 1 or 2 decimal places?<br><br>thank you<br><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/84487198-c5d1-49b3-8e8d-268eee77b9f2%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/84487198-c5d1-49b3-8e8d-268eee77b9f2%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />