title: How to convert error value from shorthand notation to standard form
body: <p>In shorthand error notation, a value and its respective error are shown as</p>
  <pre><code>value(error)
  </code></pre>
  <p>Where error denotes the error in the last digits of value. For example</p>
  <pre><code>12345.67(89) == 12345.67 +/- 0.89
  1234.5(6789) == 1234.5 +/- 678.9
  </code></pre>
  <p>In the second example, there is error in the last 4 digits of 1234.5, and since we there is one digit after the decimal point, 6789 will also have the same form.
  My current solution works but seems inefficient in its execution, especially when parsing large datasets.</p>
  <pre><code>value = 12345.67
  error =78
  
  print(f'Result = {value}({error})')
  if '.' in str(value): # Check for decimal point  
      decimals = str(value).split('.')[1] #capture the numbers following the decimal place
      dec_len = len(decimals) # how many digits after the decimal point 
      error = error / (10**dec_len) # divide error by 10^number_of_decimals
  # If no decimal point, the error is absolute 12345.6(789)=12345.6+/-789
  print('This is equivalent to:')
  print(f'Result = {value}+/-{error}')
  </code></pre>