I'm doing this equation
double1 * ((double2/double3) ^ 2.333)
getting error
operator '
^
' cannot be used on type double.
what variable should I use instead of double?
I'm doing this equation
double1 * ((double2/double3) ^ 2.333)
getting error
operator '
^
' cannot be used on type double.
what variable should I use instead of double?
Use Math.Pow(value, exponent)
instead.
Math.Pow(3,2)
outputs 9
The operator you attempted to use (^
) cannot be used for this purpose. It is a logical XOR and should be used for bitwise exclusive OR operations.