Question by
BrokenPixlGames · Jul 13, 2017 at 08:44 AM ·
floatdoubleconverting-var-type-to-other-var-type
error CS0266: Cannot implicitly convert type `float' to `double'. An explicit conversion exists (are you missing a cast?)
I used
float prog = Mathf.Clamp01 (operation.progress / .9f);
double progConv = (float)prog;
Help?
Comment
your prog is float you cannot convert float type to double. use (double)prog
Your answer
Follow this Question
Related Questions
Convert "Double" to "Float" or "Int"? 1 Answer
How to get type double to vector3? 0 Answers
The moving average (filter) of the acquired value of the HTC vive controller 0 Answers
Double vs Float 1 Answer
Converting object to float in unity? 1 Answer