Stellios said:Hmmm, think ive jsut found a solution.
Quick Q, is 2*=2 the equivalent of 2^2? Ive just tried it and it works.
elkdanger said:I'm not entirely sure what it is in java, although it might be a function such as pow() or it could even actually be 2^2 (^ is the power operator in C#, might be the same in Java).
Stellios said:I need to multiply by the power of 1^2, 2^2, 3^3 etc etc
Dj_Jestar said:Math.pow(double a, double b)
No it's not :/elkdanger said:or it could even actually be 2^2 (^ is the power operator in C#, might be the same in Java).
Inquisitor said:No it's not :/
^ is the XOR (exclusive OR) operator in C# and Java.
elkdanger said:You're right, I stand corrected.