I'm fairly new to c so forgive me if this is glaringly obvious answer to this.
val += (unsigned int)(pow(2.0, (double)m));
m is an int loop counter. It is involved in some other equations; basically it would be easier for me to cast it to a double in this one case than change it to a double in the declaration.
val += (unsigned int)(pow(2.0, ((double)m) ));
I've tried using adding more brackets, but I still get the error.
Thanks