Double serialization in net481 accuracy problems #110276
Labels
area-System.Text.Json
tracking-external-issue
The issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly
Description
Using System.Text.Json serialization for
double
values serializes inaccurately in .Net Framework versions.Note that it works fine in .Net Core+ versions.
Reproduction Steps
Expected behavior
I expect that it would serialize to 4.2 as that's the original value, and as it works in .Net Core+ versions.
Actual behavior
double
serializes to an approximation.Regression?
Unknown, guessing not.
Known Workarounds
None.
Configuration
Built and run under .Net 9.0.100 on Windows 11 x86
Using System.Text.Json 9.0.0
Other information
No response
The text was updated successfully, but these errors were encountered: