title: Why isdigit() return false on float?
body: <p>I would like to check if my value is a float with a point or a comma but isdigit() return false with a point. I would like to know why and how go through it.</p>
  
  <pre><code>&gt; value = "0.0"
  &gt; print value.isdigit():
  &gt;&gt;&gt; False
  </code></pre>
  
  <p>My code is : </p>
  
  <pre><code>if "." in value and value.isdigit()
      print "ok"
  </code></pre>