Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71439

QString::numer badly formats string with negative number and 0 precision

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.11.0
    • None
    • macOS

    Description

      QString::number(-0.000000000708115, 'f', 0)
      

      returns "-0" with Qt 5.11
      while it returns "0" with Qt 5.9

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            3nids Denis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes