You are not logged in.
Pages: 1
Hi Arnaud,
I believe, that this is a compiler problem, but want to check with you first.
Paste: https://pastebin.com/dzhFBtLv
When running with Delphi 10.4, I get the expected result:
{"Float":0.434797083333224}
When running with Delphi 11, I get invalid JSON:
{"Float":0.4347970833332◄0}
"◄" is Char #11
When changing the method DoubleToJson in mormot.core.text, so that FloatToJsonNan is not called, and simple set
Result := @tmp;
the result is as expected.
Regards,
Daniel
P.S.: It happens only with values, that have larger precision.
Last edited by sakura (2021-10-26 11:39:01)
Offline
Pages: 1