View Issue Details

IDProjectCategoryView StatusLast Update
0034954FPCDocumentationpublic2019-01-27 11:13
ReporterSerge AnvarovAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.4Product Build 
Target Version3.2.0Fixed in Version3.3.1 
Summary0034954: Adjust documentation for SimpleRoundTo
DescriptionAfter 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.
TagsNo tags attached.
Fixed in Revision1552
FPCOldBugId
FPCTarget
Attached Files

Relationships

related to 0034946 resolvedMichael Van Canneyt SimpleRoundTo - fail to round negative numbers 

Activities

Michael Van Canneyt

2019-01-27 09:18

administrator   ~0113654

Corrected documentation as suggested, thanks for reporting!

Issue History

Date Modified Username Field Change
2019-01-26 21:49 Serge Anvarov New Issue
2019-01-26 21:49 Serge Anvarov Status new => assigned
2019-01-26 21:49 Serge Anvarov Assigned To => Michael Van Canneyt
2019-01-27 09:18 Michael Van Canneyt Fixed in Revision => 1552
2019-01-27 09:18 Michael Van Canneyt Note Added: 0113654
2019-01-27 09:18 Michael Van Canneyt Status assigned => resolved
2019-01-27 09:18 Michael Van Canneyt Fixed in Version => 3.3.1
2019-01-27 09:18 Michael Van Canneyt Resolution open => fixed
2019-01-27 09:18 Michael Van Canneyt Target Version => 3.2.0
2019-01-27 11:13 Michael Van Canneyt Relationship added related to 0034946