No clue whats wrong here

This code gives me this error;
“CS0019 Operator ‘^’ cannot be applied to operands of type ‘float’ and ‘float’”
I’m at a loss for what could be causing this. (Btw, all three of these variables are floats)

sum1 = sum1 ^ nTwo;

This code also gives the same error;
sum2 = sum2 ^ (1/nOne);

When it says it can’t use ‘^’ on floats it means just that.

You can’t use that with floats.

“^” is a bitwise operator. It can only be used shuffle bit data around. Unless you REALLY know what you’re doing, try something else.

Is there any alternative solution to this? Also, why is this a limitation, shouldn’t it work if the float is whole from a mathematical perspective?

No, I think it only works on Int.

Here’s a link on the matter.

Binary XOR Operator copies the bit if it is set in one operand but not both.

Example:
(A ^ B) = 49, which is 0011 0001

What are you trying to do? Adjust bits? Raise to the power of?

Figured it out, I use mathf.pow