<div dir="ltr"><div>thanks, it worked :-)<br><br></div>have a nice day,<br>laurie<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/16 Paul Groot <span dir="ltr"><<a href="mailto:pfc.groot@gmail.com" target="_blank">pfc.groot@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>The FOrmat function will be able to do this for you. (See the E-Basic help documentation for a complete description with examples)<br>
<br><font>score = Format$</font>(percent/10,"0.0")<br>
<br>or <br><br><font>score = Format$</font>(percent/10,"0.00")<br><br></div>for two decimals.<br><br></div>Paul<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On 16 September 2013 18:31, laurie <span dir="ltr"><<a href="mailto:lauriebayet@gmail.com" target="_blank">lauriebayet@gmail.com</a>></span> wrote:<br>

</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><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<span><font color="#888888"><br><br></font></span></div></div><span><font color="#888888">

<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 <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<div class="im"><br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<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" target="_blank">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" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
</div></font></span></blockquote></div><br></div><div class="im">

<p></p>

-- <br>
You received this message because you are subscribed to a topic in the Google Groups "E-Prime" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/e-prime/YkmFEvxOlxA/unsubscribe" target="_blank">https://groups.google.com/d/topic/e-prime/YkmFEvxOlxA/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br></div>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CAKAdR-sze1ksMEJTWbTsxOY3TNtzW2YhiAffeRRekXAkMcazyw%40mail.gmail.com" target="_blank">https://groups.google.com/d/msgid/e-prime/CAKAdR-sze1ksMEJTWbTsxOY3TNtzW2YhiAffeRRekXAkMcazyw%40mail.gmail.com</a>.<div class="HOEnZb">
<div class="h5"><br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
</div></div></blockquote></div><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/CAGHpV7zgd8iZ4YChoKvyFu-urWP8Q8C%2BGXGSNSxtdUBip5kBjw%40mail.gmail.com">https://groups.google.com/d/msgid/e-prime/CAGHpV7zgd8iZ4YChoKvyFu-urWP8Q8C%2BGXGSNSxtdUBip5kBjw%40mail.gmail.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 />