Calculating with fractions

Hello,

Can you reproduce this?

You are doing integer math:
Integer Division -- from Wolfram MathWorld

Try 1.0/60 and see what happens.

Make sure that you declare your variables correctly as well.

References:
int / Reference / Processing.org
float / Reference / Processing.org

:)

3 Likes