Like the error message says, you can only do xor on integers.

Thank you for your response. However, is there any workaround for the problem? I don't really understand about XOR. I know that it is a Logical Operator or sort of but how do I solve this problem?

Or tell us the problem you're really trying to solve, rather than attempting to fix your solution with one line of code.

Actually, I want to generate a sound frequency using the key number. Actually, I could use integer, but then the frequency will loss its accuracy.
Check this link: http://en.wikipedia.org/wiki/Piano_key_frequencies
What I mean is, for example if the input is 49, then it will produce the sound of 440 Hz from the pc speaker. The problem using integer is, for example, if the input is 50, it will produce the sound of 466.164 Hz, which is not an integer, so that's why I can't use integer.

Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...