Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Error:Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type

$
0
0
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

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>