When subtracting decimals, it goes nuts after once it goes below 1.
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
mob
var
test4 = 2
Login()
..()
while(test4 >= 0)
test4 -= 0.1
src << test4
sleep(1)
Expected Results:
Not what it's doing below. :(
Actual Results:
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.0999997
-3.12924e-007
Does the problem occur:
Every time? Or how often?
Every time.
In other games?
Untested.
In other user accounts?
Untested.
On other computers?
Untested.
When does the problem NOT occur?
When round() is used.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
I've only tested it on 479 and 480, and it happens in both of those versions.
Workarounds:
Use round() to the approximate decimal.