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

QVariant fp conversion toString different

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.5.0
    • Core: Object Model
    • None
    • Ubuntu SMP Fri Jul 24 21:17:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

    Description

      #include <QApplication>
      #include <QQmlApplicationEngine>
      #include <QCoreApplication>
      #include <QFile>
      #include <QDataStream>
      #include <QDebug>
      #include <QStringList>

      int main(int argc, char *argv[])

      { QCoreApplication a(argc, argv); QVariant v(3.3); // The variant now contains an double qDebug() << v.toString() << endl; return a.exec(); }

      Qt 5.4 out "3.3"
      Qt 5.5 out "3.2999999999999998"

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              beigenmann Benno Eigenmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes