View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038323 | FPC | FCL | public | 2021-01-06 20:47 | 2021-01-07 22:07 |
Reporter | Klaus1 | Assigned To | Florian | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.2.0 | ||||
Summary | 0038323: Error in FormatFloat (SysUtils), the plus or minus sign in exponet between E and digits err | ||||
Description | See the test console program. In the old compiler version FPC 3.04 is all ok. | ||||
Steps To Reproduce | Here 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. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 34420 | ||||
FPCOldBugId | |||||
FPCTarget | - | ||||
Attached Files |
|
related to | 0037374 | closed | Jonas Maebe | FormatFloat broken for exponential format and value 0 |
|
What is output? |
|
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) |
|
This was my report https://bugs.freepascal.org/view.php?id=37374. Fixed in FPC-r46778. |
|
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. |
|
Merged, hopefully works now. |
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 |