Get Started
·
Register
·
Login
Posts
ID:141047
Favorites
Creations
Medals
pow function?!
in
Developer Help
[Tips]
ID:141047
Jul 2 2009, 12:40 pm
Tubutas
Code:
for
(
var
/v=0
to
3)
world<<
"
[v]
^2=
[v^2]
"
Problem description:
the compiler returns
(in the parenthesis is the correct answer)
0^2=2(0)
1^2=3(1)
2^2=0(4)
3^2=1(9)
#1
Jul 2 2009, 12:44 pm
DarkCampainger
You want
**
^
is binary XOR
#2
Jul 2 2009, 12:53 pm
In response to
DarkCampainger
(#1)
Tubutas
ty.
Copyright © 2013 BYOND. All rights reserved.
^ is binary XOR