R92 - big whole numbers bug

Bugs will be moved here once resolved.

Post » Sun Jun 03, 2012 12:55 am

I've encountered the bug:

Very big whole numbers don't appear to be WHOLE

For example 1010100005 (even if you don't calculate it and assign to variable directly as number) is showing by C2 as 1010100004,99999

Look at the given example: BigNumbersBug.capx and try to increment and decrement test number.

I suppose this bug is located in the C2 real/integer types' conversion method.
B
7
S
1
Posts: 7
Reputation: 964

Post » Wed Jun 06, 2012 7:04 pm

Oops. Numbers passed to 'set text' are rounded to something like the nearest 10 digits to prevent rounding errors appearing, but this actually seems to introduce rounding errors for large numbers. I've implemented what I think is a fix for the next build, hopefully that will solve it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest