View Issue Details

IDProjectCategoryView StatusLast Update
0038323FPCFCLpublic2021-01-07 22:07
ReporterKlaus1 Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.2.0 
Summary0038323: Error in FormatFloat (SysUtils), the plus or minus sign in exponet between E and digits err
DescriptionSee the test console program. In the old compiler version FPC 3.04 is all ok.
Steps To ReproduceHere a test console program. In version 3.04 is the display ok.

program Fehlertest;
 uses SysUtils;

 const
   sFormat = '+0.00000E+00;-0.00000E+00;+0.00000E+00';

 var
   c :Char;
   x :array[1..6] of Double =(1.0,-3.2345,3.6,9.023,-0.4567,0.0);

 procedure press;
    var i :Integer;
  begin
   for i := 1 to 6 do
    writeln(FormatFloat(sFormat,x[i]));
  end;

begin
  press;
  read(c);
end.
            
TagsNo tags attached.
Fixed in Revision34420
FPCOldBugId
FPCTarget-
Attached Files

Relationships

related to 0037374 closedJonas Maebe FormatFloat broken for exponential format and value 0 

Activities

delfion

2021-01-07 08:01

reporter   ~0128137

What is output?

Bart Broersma

2021-01-07 11:45

reporter   ~0128138

FPC 3.2.0
+1,00000E00
-3,23450E00
+3,60000E00
+9,02300E00
-4,56700E--1
+0,00000E--1

FPC Trunk r48092:
+1,00000E+00
-3,23450E+00
+3,60000E+00
+9,02300E+00
-4,56700E-01
+0,00000E+00

All on Windows.
Someone needts to test the 3.2 fixes branch to see if that fix was merged.
(Or: if someone knows in which revision it was fixed, it can easily be checked in the svn log)

wp

2021-01-07 12:18

reporter   ~0128139

This was my report https://bugs.freepascal.org/view.php?id=37374. Fixed in FPC-r46778.

Bart Broersma

2021-01-07 17:50

reporter   ~0128147

That bugreport doesn't have a FPC Target set.
svn log | grep 46778 only goves that revision, so I think it has not been merged.

Florian

2021-01-07 22:07

administrator   ~0128154

Merged, hopefully works now.

Issue History

Date Modified Username Field Change
2021-01-06 20:47 Klaus1 New Issue
2021-01-07 08:01 delfion Note Added: 0128137
2021-01-07 11:45 Bart Broersma Note Added: 0128138
2021-01-07 12:18 wp Note Added: 0128139
2021-01-07 17:50 Bart Broersma Note Added: 0128147
2021-01-07 22:04 Florian Relationship added related to 0037374
2021-01-07 22:07 Florian Assigned To => Florian
2021-01-07 22:07 Florian Status new => resolved
2021-01-07 22:07 Florian Resolution open => fixed
2021-01-07 22:07 Florian Fixed in Revision => 34420
2021-01-07 22:07 Florian FPCTarget => -
2021-01-07 22:07 Florian Note Added: 0128154