title: How to define a float matrix in python 2.7
body: <p>I am trying to define a float matrix using this code in python 2.7: </p>
  
  <pre><code>import numpy as np
  A=np.array([[1/16,1/8,1/16],[1/8,1/4,1/8]])
  print A
  </code></pre>
  
  <p>The result matrix is a floor value matrix (int value matrix):</p>
  
  <pre><code>[[0 0 0]
  [0 0 0]]
  </code></pre>
  
  <p>How can I fix it to a float martix?</p>
  
  <p>Thanks :)</p>