title: Make object return float value python
body: <p>I can't think of anything similar in any other language but hopefully python can do something like this...</p>
  
  <p>What I need is the following:</p>
  
  <p>When referencing an object's value, i need the object to return a float. Eg:</p>
  
  <pre><code>    b = AnyObject(3, 4)
      print(b) #Should output 0.75
  </code></pre>
  
  <p>I have already tried the following:</p>
  
  <pre><code> def __get__(self, instance, owner):
      return float(self.param1/self.param2)
  </code></pre>
  
  <p>but this does not work. When printing b like this, i only get the object's reference:</p>
  
  <pre><code>&lt;(...) object at 0x10fa77e10&gt;
  </code></pre>
  
  <p>Please help!
  Thanks</p>