Adjust documentation for SimpleRoundTo
Original Reporter info from Mantis: SergeAnvarov @SergeAnvarov
-
Reporter name: Serge Anvarov
Original Reporter info from Mantis: SergeAnvarov @SergeAnvarov
- Reporter name: Serge Anvarov
Description:
After reading issue 0034946 I think the documentation should be fixed.
Current: https://www.freepascal.org/docs-html/rtl/math/simpleroundto.html "Round to the specified number of digits (rounding up if needed)".
This implies asymmetric arithmetic rounding. In fact, the implementation uses symmetric arithmetic rounding, the same as in the latest Delphi versions http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.Math.SimpleRoundTo
Must be: "Rounding to the specified number of digits using symmetric arithmetic rounding (rounding up for positive or down for negative if necessary)".
And add example. An example from delphi documentation is suitable.
Mantis conversion info:
- Mantis ID: 34954
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 1552 (#96483ce3)
- Target version: 3.2.0