title: I'm multiplying a numpy matrix column by a float and getting a strange rounding. What is causing this?
body: <p>I trying to update the column of a matrix by multiplying it with a float. See the code below.</p>
  <pre><code>H = np.array([[1, 2, 3], [4, 5, 6]])
  print(H[:, 0] * 0.1)
  H[:, 0] = H[:, 0] * 0.1
  print(H[:, 0])
  </code></pre>
  <p>Which gives the output:</p>
  <pre><code>[0.1 0.4]
  [0 0]
  </code></pre>
  <p>Numpy seems to round the float <code>0.1</code> to <code>0</code>, but only when assigning the value to the column. What is going on here?</p>