how to raise something to a power?
Posted: Fri Nov 18, 2011 5:57 pm
Hey, I need to know how to raise something to a power in GE.
Game Editor discussion board
http://game-editor.com/forum/
j2graves wrote:Thanks! +1
int value = pow(5,2); // = 25
skydereign wrote:You can definitely overwrite ^ to do exponents, but by default it should be set to bitwise xor. Also, since C++ and C should be compatible in most cases, switching the use of ^ by default would have been a bad idea.