We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
f? (Read 450 times)
f?
Oct 2nd, 2007, 11:05am
 
i've seen a couple of sketches using using the letter f without it being declared as a variabel.
like 100f, always with a number in front of it.
what does it mean?

Slm
Re: f?
Reply #1 - Oct 2nd, 2007, 11:35am
 
int myInt = 100; // integer
float myFloat = 100f; // float, would be 100.0;

it tells processing to treat that value as a float rather than an int which "100" would be.

F
Re: f?
Reply #2 - Oct 2nd, 2007, 3:22pm
 
thanks! Smiley
Page Index Toggle Pages: 1