Skip to content

MiniJSON loss of precision serializing floats, doubles, and decimals #240

@alduris

Description

@alduris

The MiniJSON implementation included loses precision when serializing floats, doubles, and decimals as its ToString in Json.Serialize.SerializeOther forces rounding to three decimal places, regardless of the actual precision of the number. Ran into some issues because of 0.0002 being serialized to 0.000 in the serialized JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions