mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 20:09:20 +02:00
* Fix from Andrea Mauri to make formatfloat delphi-compatible in case of negative zero (bug ID 26465)
git-svn-id: trunk@33344 -
This commit is contained in:
parent
bcdfe055a8
commit
f380aeb63d
@ -2197,6 +2197,17 @@ Var
|
||||
End;
|
||||
If (J<>0) then
|
||||
Digits[1]:='-';
|
||||
If (Digits[1]='-') then
|
||||
Begin
|
||||
I:=1;
|
||||
While (I<=length(Digits)) And (Not (Digits[I] in ['1'..'9'])) Do
|
||||
Inc(I);
|
||||
If (I>length(Digits)) then
|
||||
Begin
|
||||
Digits:=Copy(Digits, 2, Length(Digits));
|
||||
Dec(DecimalPoint);
|
||||
End;
|
||||
End;
|
||||
Exp := 0;
|
||||
End
|
||||
Else
|
||||
|
Loading…
Reference in New Issue
Block a user