Skip to content

Commit c7e861d

Browse files
committed
Remove documentation of border cases
1 parent dd4805d commit c7e861d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Modelica/Math/nearestInteger.mo

-6
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ Math.nearestInteger(0.4); // = 0
3232
Math.nearestInteger(0.5); // = 1
3333
Math.nearestInteger(-0.4); // = 0
3434
Math.nearestInteger(-0.5); // = -1
35-
Math.nearestInteger(0.3999999999999999+0.1); // = 0
36-
Math.nearestInteger(1.39999999999999999+0.1); // = 1 (erroneous border case, see note below)
3735
</pre></blockquote>
3836
3937
<h4>Note</h4>
@@ -42,9 +40,5 @@ Math.nearestInteger(1.39999999999999999+0.1); // = 1 (erroneous border case, see
4240
This function does the same conversion as the block
4341
<a href=\"modelica://Modelica.Blocks.Math.RealToInteger\">RealToInteger</a>.
4442
</p>
45-
<p>
46-
The underlying equation is simple, but not always correct. Due to floating point arithmetic some border cases
47-
are not converted correct, like shown in the example above.
48-
</p>
4943
</html>"));
5044
end nearestInteger;

0 commit comments

Comments
 (0)