One nice thing with Processing is that you can paste my code (and your!) in the PDE, hit Run, and have the result...
So, no more "would output", but facts...
"So it does the whole operation and then chops off the decimal at the end right?"
Wrong. These are integers. There is no decimal in integers. It does integral division: 16 divided by 10 will give 1.
Often people don't understand why 5/10 gives 0. That's because anything divided by anything bigger (remaining in the integer realm) will give zero.
So n should be actually 20.
If you want 32, use floats, then use int(result) to get an integer.