<p>Am 13.08.2013 23:48 schrieb "David Emerson" <<a href="mailto:dle3ab@angelbase.com">dle3ab@angelbase.com</a>>:<br>
><br>
> Hi all,<br>
><br>
> I have just discovered that the system.round function has this very odd behavior of rounding towards an even number when the fractional part is .5 -- in the system.round documentation this is described as "banker's rounding"<br>
><br>
> I do not like this behavior. How can I use a more mathematically-traditional round function, which always rounds .5 up, and everything below .5 down?<br>
><br>
> Do I need to write this function myself?</p>
<p>Take a look at SetRoundMode in unit Math: <a href="http://www.freepascal.org/docs-html/rtl/math/setroundmode.html">http://www.freepascal.org/docs-html/rtl/math/setroundmode.html</a></p>
<p>Regards,<br>
Sven</p>