title: Double numbers and bitxor
body: <p>I have two matrices <code>a = [120.23, 255.23669877,...]</code> and <code>b = [125.000083, 800.0101010,...]</code> with double numbers in [0, 999]. I want to use <code>bitxor</code> for <code>a</code> and <code>b</code>. I can not use <code>bitxor</code> with <code>round</code> like this:</p>
  
  <pre><code>result = bitxor(round(a(1,j),round(b(1,j))
  </code></pre>
  
  <p>Because the decimal parts 0.23 and 0.000083 ,... are very important to me. I thought maybe I could do <code>a = a*10^k</code> and <code>b = b*10^k</code> and use <code>bitxor</code> and after that <code>result/10^k</code> (because I want my result's range to also be [0, 999]. But I do not know the maximum length of the number after the decimal point. Does <code>k = 16</code> support the max range of double numbers in Matlab? Does <code>bitxor</code> support two 19-digit numbers? Is there a better solution?</p>