Draw and Erase

Can anyone please help me understand the difference between the two pieces of code?

I "optimized" too much parenthesis away, sorry :slight_smile:
The best way to understand the code is too take paper and pencil and write out every step as if you were the CPU. Be sure to write every answer of every addition/subtraction/mult/sin/etc and you wil see the diff.

I assume it is in the casting which throws away the decimal part.