Skip to content
GitLab
Projects Groups Topics 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • 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
  • Issues
  • #67
Closed
Open
Issue created Dec 06, 2021 by Takayuki YAMAGUCHI@ytaka

Double is converted to invalid string when exponential notation is used

If a string converted from a double number does not have "." then ".0" is appended to the end of the string to distinguish double and integer. However, this behavior causes an invalid exponential notation. For example, the double number 1e-08 is converted to "1e-08.0". Would you test

(g_strstr_len (buf, G_ASCII_DTOSTR_BUF_SIZE, "e") == NULL)

before appending ".0"?

Edited Dec 06, 2021 by Takayuki YAMAGUCHI
Assignee
Assign to
Time tracking