Posts: 40
Threads: 12
Joined: Sep 2009
Reputation:
0
I was wondering - in turbo pascal we have or and xor operators. Does pawno have an alternative for xor? (1011 xor 0101 = 1110)
Posts: 40
Threads: 12
Joined: Sep 2009
Reputation:
0
That would, in some cases, get it done, but how can I make it work with integers? I just sooo need a xor operator around here...
Example: 6 xor 2 = 7 (binary: 0110 xor 0010 = 0111)
Posts: 788
Threads: 22
Joined: May 2006
Reputation:
0
Look in YSI, the misc file contains one IIRC.
Posts: 40
Threads: 12
Joined: Sep 2009
Reputation:
0
Maybe you know where I could find a pawn function that would convert an integer to binary code? Or atleast emulate that with outputing an array/string of integers (1-0)
Posts: 105
Threads: 3
Joined: Jul 2007
Reputation:
0
XOR is ^. e.g. a ^ b
The guy just wants xor people...