<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 14.08.2013 10:11, schrieb Jonas
Maebe:<br>
</div>
<blockquote
cite="mid:FD7EF5C8-81F5-4C05-A91C-1D2024BA0FAB@elis.ugent.be"
type="cite"><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
moz-do-not-send="true"
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>
<br>
</blockquote>
It should have been "x.5" instead of "0.5" :)<br>
<br>
What's your opinion regarding the point that the compiler does not
handle the rounding mode when "Round" is inlined for constants?<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>