<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'>
<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>

</body></html>