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

JS toFixed result is wrong with QtQuick 2

    XMLWordPrintable

Details

    Description

      mouseArea.onClicked:

      { var num = 12.5; var n = num.toFixed(0); console.log(n); }

      logs 12, while with QtQuick1 it is 13.
      Also http://www.w3schools.com/jsref/jsref_tofixed.asp is returning 13.

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              qtcomsupport Qt Support
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes