Variable incorrectly displayed in text object

  • Link to .capx file (required!):

    capx link

    Steps to reproduce:

    1. Click the button a number of times to increment the value of a global variable by 0.1 per click

    2. Observe the displayed value of the global variable

    Observed result:

    Sometimes the value of the global variable is displayed incorrectly. This only happens in the text object where the global variable precedes some other text.

    Expected result:

    The value of the global variable should be displayed correctly (or at least consistently with how it is displayed in the other text object).

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7 Ultimate x64 SP1

    Construct 2 version:

    r153

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as just a normal rounding error which happens with floating point numbers in all computer systems. In some cases C2 will slightly round the number to prevent this display appearing, hence the discrepancy.

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