[Not a Bug] floating point rounding error acknowledged.

Bugs will be moved here once resolved.

Post » Sun May 04, 2014 1:06 pm

Problem Description
Global variable can't recognize a it's own value if it is changed. and variable is something like 1.1

Attach a Capx
In the attachment

Description of Capx
Simple example of this happening. instructions inside capx too (6 lines only)

Steps to Reproduce Bug
  • variable starts as 1.1, object is A when variable is 1.1
  • you change it to something else, so now object is B.
  • variable is set back to 1.1, but object is still B.

Observed Result
the second time the variable is back to default, system doesn't recognize it's the same as before.

Expected Result
it should, right? :S

Affected Browsers
  • Chrome: (YES)
  • FireFox: don't know
  • Internet Explorer: don't know

Operating System and Service Pack
Windows 7 pro 64bits

Construct 2 Version ID
release 186 (64bits)
You do not have the required permissions to view the files attached to this post.
Last edited by Sargas on Sat May 10, 2014 2:00 pm, edited 2 times in total.
B
43
S
12
G
6
Posts: 446
Reputation: 6,807

Post » Sun May 04, 2014 1:50 pm

Search for "floating point rounding error" and you'll see why 1.1 + 10 - 10 is not equal to 1.1.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680

Post » Sun May 04, 2014 2:36 pm

oh... didn't knew that. my bad :S
B
43
S
12
G
6
Posts: 446
Reputation: 6,807

Post » Thu May 08, 2014 2:51 pm

Closed as not a bug.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests