I noticed that if you have a division equation that needs to end up being an int it will still let you do the equation however it will not allow you to add a decimal. This strikes me as being weird as many times the division equation returns a non integer value yet it seems that it still allows it to be converted into an Int. Am i mistaken here or is it simply truncated or rounding the float? if it is which of the two is it doing?
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.