0 Favourites

Comparison bug

  • Problem Description

    A greater than var condition, with a value less than 1 in the decimal range, is still triggering once when the condition becomes false.

    Attach a Capx

    Description of Capx

    Two values shown with two keyboard conditions. One controls val with less than 1 and another controls varTwo with greater than 1.

    Steps to Reproduce Bug

    • Press S until the text on the right becomes true as shown on the header above it.
    • Press A until the value on the left becomes less than the value shown above it.

    Observed Result

    The value on the left triggers one more time past the stated condition shown above.

    Expected Result

    The value on the left stops at the condition shown above.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 10, 64bit

    Construct 2 Version ID

    r243

  • Not a bug in the comparison.

    val = 0.40000000000000013, or bigger then 0.4, so the comparison is just true.

    It is a accuracy trade off that goes with software and computers.

    It is for you to make 'software' that is using algorithms that goes along with this.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Not a bug in the comparison.

    val = 0.40000000000000013, or bigger then 0.4, so the comparison is just true.

    It is a accuracy trade off that goes with software and computers.

    It is for you to make 'software' that is using algorithms that goes along with this.

    Ah okay, thanks for the explanation. 8)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)