Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • json-glib json-glib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • json-glibjson-glib
  • Merge requests
  • !57

generator: ensure valid output double exponential notation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mark Nauwelaerts requested to merge mnauw/json-glib:valid-double-exponential into master Jan 26, 2023
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 2

As mentioned in the referenced issue #67 (closed) a double may be serialized incorrectly. For example, 1e-08 is serialized as 1e-08.0 (which is not a valid double, at least not according to JSON spec; https://www.json.org/json-en.html). This patch follows the suggestion in the issue and also adds a minor test.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: valid-double-exponential