I have the following:
int val1 = 2;
float val2 = (float)val1;
decimal val3 = 3.2m;
float val4 = (float)val3;
float Result2 = Math.Pow(val4, val2);
It seems to me supposedly val4 and val2 are both in the float type. However i get a error on Math.Pow everytime signaling it can't convert type double to type float implicitly. I think i'm casting everything correctly, am I missing something?