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.
IndexProgramming Questions & HelpSyntax Questions › .5f what is the f
Page Index Toggle Pages: 1
.5f what is the f? (Read 1263 times)
.5f what is the f?
Jul 16th, 2008, 8:53pm
 
What is the purpose of the f?
Re: .5f what is the f?
Reply #1 - Jul 16th, 2008, 9:00pm
 
The f just says "this value is a float".. by default Java interprets 0.3 as a double but saying 0.3f makes it a float.

Processing however interprets 0.3 as a float, so the f is not necessary.
Re: .5f what is the f?
Reply #2 - Jul 16th, 2008, 9:14pm
 
lol, i spent about 2 hours on the net one time searching for the same thing..
Re: .5f what is the f?
Reply #3 - Jun 9th, 2009, 12:20pm
 
thanks, ive been more lucky and found this thread after 10mins.

just searched for f   Roll Eyes
Re: .5f what is the f?
Reply #4 - Jun 9th, 2009, 6:03pm
 
Smiley
Re: .5f what is the f?
Reply #5 - Jun 11th, 2009, 7:30pm
 
Wink
Page Index Toggle Pages: 1