Simple math doing my head in - when is an int treated like an int?

majenko:
130*255/1023. Think about how that sum works.

130 * 255 = 33150

That's outside the amount that an int will store.

Ah. Ok. :blush: Thanks.

Thanks for the input guys - as for the why not divide by 4, I saw the 1023 and decided it would not quite be 4. doh.