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

demo calculator x^2 calculate wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.7.3
    • Qt Script
    • None
    • windows

    Description

      The calculated x^2 result is wrong.

      Run the calculator demo, input, say 54. Then:
      1/x ==> 0.0185185185185. Then:
      x^2 ==> 0.0003429355281
      x^2 ==> 1.1760477643322

      This is obviously wrong. When x < 1, and you do x^2, the result will be smaller, until it reaches 0. This could be reproduced with other number that is smaller than 1.

      Attachments

        For Gerrit Dashboard: QTBUG-20845
        # Subject Branch Project Status CR V

        Activity

          People

            kenthans Kent Hansen (Inactive)
            yongjie Yongjie Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes