title: String or double to byte
body: <p>I have a problem. I receive a <code>double</code> val=80.22. Then I split it:</p>
  
  <pre><code>String[] arr=String.valueOf(val).split("\\.");
  int[] intArr=new int[2];
  intArr[0]=Integer.parseInt(arr[0]); // 80
  intArr[1]=Integer.parseInt(arr[1]); // 22
  </code></pre>
  
  <p>Now i need to put this values into a <code>byte[]</code>. But I don't need the value into the <code>byte[]</code>, I need it like this: 0x80 , 0x22. </p>
  
  <p>What I have tried:</p>
  
  <pre><code>byte firstbyte = Byte.parseByte(arr[0], 16);
  byte secondbyte = Byte.parseByte(arr[1], 16);
  </code></pre>
  
  <p>This works fine but only to the value 80, then I receive:</p>
  
  <pre><code>java.lang.NumberFormatException: Value out of range. Value:"80" Radix:16
  </code></pre>
  
  <p>But I don't get it. I need the number up to the value 100. </p>
  
  <p>I have tried to write it into a string like string = 0x80 but I don't know how to put it into the <code>byte[]</code> then.</p>
  
  <p>Thanks for your help!</p>