<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><p style="color:#000;">On 22 April 2015 at 19:44:26, William Huston (<a href="mailto:williamahuston@gmail.com">williamahuston@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


On Wednesday, April 22, 2015, Jamie Bullock <<a href="mailto:jamie@jamiebullock.com">jamie@jamiebullock.com</a>>
wrote:<br>
><br>
> Pd is 32-bit *floating point*, so you have 32-bit resolution
between -1 and 1.<br>
<br>
I don't think that's right.<br>
<br>
The range of a single precision floating point number is from<br>
<br>
-3.4028234 × 10E38 to 3.4028234 × 10E38 (not from -1 to 1)<br>
<br></div></div></span></blockquote><div><br></div><div>True, but I didn’t say the range of 32-bit float was -1 to 1!</div><br><blockquote type="cite" class="clean_bq"><span><div><div>
There are only 23 bits of precision for the mantissa + 1 for sign
in a single precision float.<br><br>


</div></div></span></blockquote><br><div>Also true, but when I said “resolution” I didn’t mean “precision”. Because the exponent can be negative, resolution scales dynamically from 1..0 according to the value of the exponent, whilst precision stays fixed according to the number of bits in the mantissa. Thus for very small values the resolution (or quantisation step size) is far finer than can be represented with the mantissa alone. </div><div><br></div><div>What I was trying to put across (poorly!) in my original reply is that unlike fixed point where for lower order values fewer bits are available in the binary representation, with floating point, just because e.g. -1..1 is a smaller range than -3.4 x 10E38..3.4 x 10E38 it doesn’t imply “fewer are bits available”, e.g.</div><div><br></div><div>Sign<span class="Apple-tab-span" style="white-space:pre">          </span>Exponent<span class="Apple-tab-span" style="white-space:pre">            </span>Mantissa</div><div>0 <span class="Apple-tab-span" style="white-space:pre">           </span>01111110  <span class="Apple-tab-span" style="white-space:pre">     </span>11111111111111111111111 <span class="Apple-tab-span" style="white-space:pre">    </span>-> 0.99999994</div><div>0 <span class="Apple-tab-span" style="white-space:pre">           </span>00000001 <span class="Apple-tab-span" style="white-space:pre">   </span>11111111111111111111111 <span class="Apple-tab-span" style="white-space:pre">    </span>-> 2.3509886E-38</div><div>1<span class="Apple-tab-span" style="white-space:pre">            </span>01000000        0000000000000000000000<span class="Apple-tab-span" style="white-space:pre">  </span>-> -1.0842022E-19</div><div>1              011111110        0000000000000000000000<span class="Apple-tab-span" style="white-space:pre">    </span>-> -1.0</div><div><br></div><div>Strictly speaking, I guess only 31 bits “count” in the range -1..1 due to a maximum of 7-bits being significant in the exponent.</div><div><br></div><div>best,</div><div><br></div><div>Jamie</div></body></html>