I am creating a script that can solve equations for you and right now I'm working on a function that can find the circumference of a circle.
public float radiusCircuference;
private float pi = 3.14;
private float cCircuference;
cCircuference = radiusCircuference * pi * 2;
It comes up with the error: Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type
Can someone help please?
Thanks in advance
↧