* Delphi-compatible output for tvalue.asstring for float value. Fixes issue #41027

This commit is contained in:
Michaël Van Canneyt 2024-11-19 23:33:55 +01:00
parent 930596bd85
commit 1230e5a623

View File

@ -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);