<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body style="font-size: 10pt; font-family: Verdana, Geneva, sans-serif; zoom: 0%;"><div dir="auto">The higher the number, the more lower bits will be 0, because the floating point mantissa is too small to store them. It becomes more clear if you use binary notation.</div>
<div class="gmail_quote" >Am 26. Mai 2021, um 10:39, <a href="mailto:rolfm@dds.nl" target="_blank">rolfm@dds.nl</a> schrieb:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<p>rolfm@dds.nl schreef op 25-05-2021 23:16:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>hi,</p>
<p>because of the problems i had with calculations using floating point math,</p>
<p>and following Roman's advice, i changed to integer math.</p>
<p><br></p>
<p>however that's easier said then done.</p>
<p>i'm running again into an unexpected limitation:</p>
<p>32-bits can represent signed integers upto 2.147...billion.</p>
<p>however, as soon as a number is greater then binary 27 bits the last byte stays 0.( after 134217727 )</p>
<p>e.g. 134200000 + 25000 = 134224992 (should be 134225000).</p>
<p><br></p>
<p>what am i missing?</p>
<p><br></p>
<p>rolf</p>
</blockquote>
<p>correction: the difference is 8, so it's the last 4 bits that are involved.</p>

<pre class="blue"><hr><br>Pd-list@lists.iem.at mailing list<br>UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a><br></pre></blockquote></div></body></html>