title: ASCII array to number In Python
body: <p>I am trying to parse an array of ascii characters which form a number (float, int...) Sometimes array length is 1, 2, 3....8... I am looking for a way to get the whole array (with just one complete value each time) and return the number to add it to a json.</p>
  
  <p>I am using python 3. Is there a fixed function to do that? I haven't found anything on the internet yet.</p>
  
  <p>I was thinking in something like this: </p>
  
  <pre><code>return arrayBytes[0]&lt;&lt;8 | arrayBytes[1]
  </code></pre>
  
  <p>But I get values like 574 in a % value so it has to be wrong and just would work with 2 ascii array length. </p>
  
  <p>Here you have an example of the input: </p>
  
  <pre><code>4 value: 0x32 0x38 0x2e 0x36
  2 value 0x34 0x39 
  3 value 0x30 0x2e 0x34
  </code></pre>