title: How to convert bytes object to string and then Decimal?
body: <p>I am trying to convert the bytes object to <code>Decimal</code>. In order to achieve it, I am firstly converting it to string. Below is my function to convert it to string.</p>
  
  <pre><code>def strPrepare(self, s):
      return str(s).strip()
  </code></pre>
  
  <p>Then I am calling this function as:</p>
  
  <pre><code>x = b'6016.0000'
  s = self.strPrepare(x)
  d = Decimal(s)
  </code></pre>
  
  <p>But with this code I am getting the error as:</p>
  
  <blockquote>
    <p>Error has occurred: Cannot convert b'6016.0000' to Decimal</p>
  </blockquote>