My student needs help debugging this:
What is supposed to happen:
Round the number to the nearest integer
What is happening:
On line 122 and on line 128 the math.round block is not rounding my number. In my code it takes the position of the world mouse and puts it in a variable, then it divides 100 times by 2 and then rounds. After that it undoes the multiplication and divisions which should round it to the nearest 50 pixels. The multiplication and division works but the Math.round does not.
What I have tried:
I have tried using different variable names, since I like coding by hand I switched to blocks and tried adding another rounding block, and I tried adding code to run one one thing at a time that I could control with the keyboard. I have no idea what could be causing this problem because I know the if statement it is in is working. Also the round block worked earlier in my code.