Can't convert "float" to "mathf" (C#) -


i discovered mathf (wonderful tool). new tool, we're going through some... growing pains. i'm working on unit conversion script. here's code. thought mathf.pow requires 2 floats, in case 10 , 6. apparently that's frowned upon. ideas?

mathf megagram;   void start () {     megagram = mathf.pow(10,6); 

mathf.pow returns float while assigning return value (float) megagram (mathf type)


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -