Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. double format to QString exponent has extra 0

double format to QString exponent has extra 0

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 248 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EMStegehuis
    wrote on last edited by
    #1

    After updating from QT 5.7.0 to 5.13.2 we see that double are reformatted slightly different.

    An extra 0 in the exponent

    5.7.0: -> 1.23457e+6
    5.13.2-> 1.23457e+06

    Does anyone know when this has changed and why?

    Or is it just a settings/option/parameter somewhere?

    Regards,

    Marcel

    aha_1980A 1 Reply Last reply
    0
    • E Offline
      E Offline
      EMStegehuis
      wrote on last edited by
      #2

      Maybe an old bug that has been fixed:

      https://forum.qt.io/topic/77226/missing-zero-in-exponential-format

      1 Reply Last reply
      1
      • E EMStegehuis

        After updating from QT 5.7.0 to 5.13.2 we see that double are reformatted slightly different.

        An extra 0 in the exponent

        5.7.0: -> 1.23457e+6
        5.13.2-> 1.23457e+06

        Does anyone know when this has changed and why?

        Or is it just a settings/option/parameter somewhere?

        Regards,

        Marcel

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @EMStegehuis,

        you didn't provide code from which you see this difference, but most likely this commit, which introduced an external library for double formating is guilty.

        The commit has links to bug reports, and also contains a workaround (compile Qt without libdouble-support).

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        3

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved