mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-07 10:06:00 +02:00
* Delphi-compatible output for tvalue.asstring for float value. Fixes issue #41027
This commit is contained in:
parent
930596bd85
commit
1230e5a623
@ -4148,7 +4148,10 @@ begin
|
||||
tkUString : result := AsUnicodeString;
|
||||
tkSString,
|
||||
tkAString : result := AsAnsiString;
|
||||
tkFloat : Str(AsDouble:12:4,Result);
|
||||
tkFloat : begin
|
||||
Str(AsDouble:12:4,Result);
|
||||
Result:=TrimLeft(Result)
|
||||
end;
|
||||
tkInteger : result := IntToStr(AsInteger);
|
||||
tkQWord : result := IntToStr(AsUInt64);
|
||||
tkInt64 : result := IntToStr(AsInt64);
|
||||
|
Loading…
Reference in New Issue
Block a user