In this program I am trying to create a simple calculator. However, I can\'t seem to find a way to overcome the aforementioned error when reaching the Math.Pow line
Math.Pow
The return value of Math.Pow is a double. The variable power in your program is a float, which has a smaller range and accuracy.
double
power
float
You should define power to be a double.