Show only 6th digit of reaction time
<p>I am running a reaction time experiment. I am very new to python and I'm using a package called psychopy (though I guess this is a python question). I have a reaction time and <strong>I just want to consistently display ONLY the 6th digit after the decimal (microsecond)</strong>.</p>

<p>This code shows the RT to 6 digits:</p>

<p><code>msg="Correct! RT=%.6f" %(resp.rt)</code> produces this on the display: 0.427716 </p>

<p>But I want to display only the last digit, in this example 6.</p>

<p>I have used this code successfully:</p>

<pre><code>msg= str(resp.rt)[-7]
</code></pre>

<p>But, the corresponding digits displayed are sometimes the 5th and sometimes the 6th. Instead of always the 6th. I have no idea why.</p>
