You are not logged in.
Pages: 1
You need to enable float process.
Floats may not be consistent when converted back and forth.Use _JsonFastFloat() as documented.
Thanks, I dont see a _JsonFastFloat anywhere even if searching the mORMot-master.zip sources
Hi!
this code
var
obj: Variant;
z: double;
begin
obj := _JsonFast('{"x": 8.1E-2}');
z1 := obj.x;
Memo1.Lines.Add(Format('x: %f', [z]));
end.
produces output "x: 8.10" instead of 0.081, why?
Pages: 1