diff --git a/Modelica/Math/nearestInteger.mo b/Modelica/Math/nearestInteger.mo index 21f2af987c..8d9e9475b6 100644 --- a/Modelica/Math/nearestInteger.mo +++ b/Modelica/Math/nearestInteger.mo @@ -17,8 +17,8 @@ Math.nearestInteger(r);

Description

- The input value \"r\" of type Real is converted to the closest Integer value \"i\", - using the round half away from zero rule with the equation: +The input value \"r\" of type Real is converted to the closest Integer value \"i\", +using the round half away from zero rule with the equation:

 i = integer( floor( r + 0.5 ) )  for  r > 0;
@@ -39,12 +39,12 @@ Math.nearestInteger(1.39999999999999999+0.1); // = 1 (erroneous border case, see
 

Note

- This function does the same conversion as the block - RealToInteger. +This function does the same conversion as the block +RealToInteger.

- The underlying equation is simple, but not always correct. Due to floating point arithmetic some border cases - are not converted correct, like shown in the example above. +The underlying equation is simple, but not always correct. Due to floating point arithmetic some border cases +are not converted correct, like shown in the example above.

")); end nearestInteger;