Utf8Json icon indicating copy to clipboard operation
Utf8Json copied to clipboard

Unable to Deserialize some doubles e.g. "59.08634249999999" will be "5.90863425E+15"

Open tomsoftware opened this issue 3 years ago • 2 comments

Some Float-Point Numbers are not Deserialize correctly

Example:

var x = JsonSerializer.Deserialize<object>("{\"a\":59.08634249999999}");

will result in

{[a, 5.90863425E+15]}

tomsoftware avatar Dec 15 '20 21:12 tomsoftware