Results 1 to 6 of 6

Thread: XOR function

  1. #1

    Thread Starter
    Lively Member deranged's Avatar
    Join Date
    Jun 2004
    Location
    TN
    Posts
    104

    XOR function

    How do I use the XOR function in c#?

  2. #2
    New Member
    Join Date
    Oct 2005
    Posts
    6

    Re: XOR function

    ^ is the XOR operator in C#.

  3. #3

    Thread Starter
    Lively Member deranged's Avatar
    Join Date
    Jun 2004
    Location
    TN
    Posts
    104

    Re: XOR function

    Thank you.

    But if ^ is xor, how do you do exponents?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: XOR function

    This might help.

  5. #5
    New Member
    Join Date
    Oct 2005
    Posts
    6

    Re: XOR function

    Quote Originally Posted by deranged
    Thank you.

    But if ^ is xor, how do you do exponents?
    Take a look at the Pow method .

    System.Math.Pow(10,2) would be the same as 10^2 I guess...

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: XOR function

    Exponenents are not worth an operator. It is a function in most language/library combinations.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width