Variable incorrectly displayed in text object

Bugs will be moved here once resolved.

Post » Tue Dec 10, 2013 3:45 pm

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
    
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193

Post » Wed Dec 11, 2013 2:54 pm

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.
Scirra Founder
B
387
S
230
G
88
Posts: 24,249
Reputation: 192,450


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests