Skip to content

Use %#g format string for floating and fixed point types #25

Open

Description

@jimkring

For example: 2647141 stored as a ‘single float’ becomes “2.64714E+6” in the JSON string, resulting in loss of precision. Changing the formatting of floats and fixed point types to %#g solves this.

Side note: This is what EasyXML does and it works great.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions