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

demo calculator x^2 calculate wrong

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes