Variable initial value percision issue.

Bugs will be moved here once resolved.

Post » Fri Oct 07, 2011 7:39 pm

For local and global variables, when inputting an initial number value, any number with more digits than 6 gets rounded, but at runtime 15 digit numbers can be used with no rounding.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Sun Oct 09, 2011 7:56 pm

Is it important to have more than 6 digits of precision? I would have thought 6 is fine.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Oct 09, 2011 11:15 pm

It's simply an inconsistency, as it is if I need a higher precision value I have to use an action to set the value of the local or global variable.

The issue came up in this topic:
http://www.scirra.com/forum/maths-split_topic45088.html
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Sun Oct 09, 2011 11:18 pm

OK, this is fixed in the next build. You can use precision up to the floating point precision (10-14 digits).
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Oct 09, 2011 11:20 pm

cool
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Mon Oct 10, 2011 2:32 am

I had to do a last-minute fix to r61. Along with the update I included this fix, so if you re-download r61 it should be working now!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest