Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Steven Katz1,892 Points
Is Chrome the problem?
I have this Question: Create a float variable named 'radius' with the value '14.5'. (Do not write the main function).
I entered the following:
float radius = 14.5;
What is the error? I cant proceed. thanks
Chris Shaw26,676 Points
The value you provided the
float is a decimal value, to define a float value it needs the letter
f at the end of the value.
float radius = 14.5f;