<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 14 Aug 2013, at 09:38, Sven Barth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">- 0.5 does not always have a direct representation as a floating point value and thus internally it might be 0.4999999 or something like that and thus it will be rounded to 0.4 (see also<span class="Apple-converted-space"> </span><a href="http://bugs.freepascal.org/view.php?id=24374">http://bugs.freepascal.org/view.php?id=24374</a><span class="Apple-converted-space"> </span>)<br></span></blockquote></div><br><div>0.5 is one of the values that can always be represented exactly. The fractional part of IEEE 754 floating point numbers is represented as sums of negative powers of 2, i.e. 0.5, 0.25, etc.</div><div><br></div><div><br></div><div>Jonas</div></body></html>