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
Forum Updated to NodeBB v4.3 + New Features

double format to QString exponent has extra 0

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 250 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 17 Dec 2019, 13:42 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

    A 1 Reply Last reply 17 Dec 2019, 14:05
    0
    • E Offline
      E Offline
      EMStegehuis
      wrote on 17 Dec 2019, 14:03 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
        17 Dec 2019, 13:42

        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

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 17 Dec 2019, 14:05 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

        1/3

        17 Dec 2019, 13:42

        • Login

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