Can anyone explain me why the console seems to restart when a number is subtracted by a decimal? I can’t understand why neither encounter it on another forums.
After checking I can see that’s because I’m declaring the result variable inside the loop and that will reset the result, I’m sorry.
Cool, glad you figured it out. In the future, please cut and paste code, console messages, etc, instead of taking a pic. It makes it a lot easier to help out.
When I post it I was thinking that it will be more readable if I just print this part because my code was big. But thinking about it now it’s not guaranted that the problem was in the part that I printed. I will pay attention to it on future, thanks!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.